presto-hive/src/main/java/io/prestosql/plugin/hive/HiveMetadata.java/HiveMetadata/getView
class HiveMetadata:    @Override
    public Optional<ConnectorViewDefinition> getView(ConnectorSession session, SchemaTableName viewName)
    {
        return metastore.getTable(new HiveIdentity(session), viewName.getSchemaName(), viewName.getTableName())
                .filter(HiveUtil::isPrestoView)
                .map(view -> {
                    ConnectorViewDefinition definition = decodeViewData(view.getViewOriginalText()
                            .orElseThrow(() -> new PrestoException(HIVE_INVALID_METADATA, "No view original text: " + viewName)));
                    // use owner from table metadata if it exists
                    if (view.getOwner() != null && !definition.isRunAsInvoker()) {
                        definition = new ConnectorViewDefinition(
                                definition.getOriginalSql(),
                                definition.getCatalog(),
                                definition.getSchema(),
                                definition.getColumns(),
                                Optional.of(view.getOwner()),
                                false);
                    }
                    return definition;
                });
    }