You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Konstantin Knauf (Jira)" <ji...@apache.org> on 2020/12/13 10:02:00 UTC
[jira] [Commented] (FLINK-17111) Support SHOW VIEWS in Flink SQL
[ https://issues.apache.org/jira/browse/FLINK-17111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248547#comment-17248547 ]
Konstantin Knauf commented on FLINK-17111:
------------------------------------------
[~ykt836] Is there a regression in Flink 1.12? In the SQL CLI, I see tables and views when running {{SHOW TABLES}} and for {{SHOW VIEWS}} I get
{quote}
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.client.gateway.SqlExecutionException: Unknown operation: SHOW VIEWS
{quote}
> Support SHOW VIEWS in Flink SQL
> --------------------------------
>
> Key: FLINK-17111
> URL: https://issues.apache.org/jira/browse/FLINK-17111
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / API, Table SQL / Planner
> Affects Versions: 1.10.0
> Reporter: Zhenghua Gao
> Assignee: Zhenghua Gao
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
>
> SHOW TABLES and SHOW VIEWS are not SQL standard-compliant commands.
> MySQL supports SHOW TABLES which lists the non-TEMPORARY tables(and views) in a given database, and doesn't support SHOW VIEWS.
> Oracle/SQL Server/PostgreSQL don't support SHOW TABLES and SHOW VIEWS. A workaround is to query a system table which stores metadata of tables and views.
> Hive supports both SHOW TABLES and SHOW VIEWS.
> We follows the Hive style which lists all tables and views with SHOW TABLES and lists only views with SHOW VIEWS.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)