You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/03/29 02:33:00 UTC

[jira] [Updated] (SPARK-27904) Improve parser error message for SHOW VIEW statement

     [ https://issues.apache.org/jira/browse/SPARK-27904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun updated SPARK-27904:
----------------------------------
    Affects Version/s:     (was: 3.0.0)
                       3.1.0

> Improve parser error message for SHOW VIEW statement
> ----------------------------------------------------
>
>                 Key: SPARK-27904
>                 URL: https://issues.apache.org/jira/browse/SPARK-27904
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Yesheng Ma
>            Priority: Major
>
> {{SHOW VIEW}} statement is actually not supported in Spark SQL. However, when a user quries such a statement, the error message is confusing. For example, the error message for
> {code:sql}
> SHOW VIEWS IN my_database
> {code}
> is
> {code:java}
> missing 'FUNCTIONS' at 'IN'(line 1, pos 11)
> {code}
> which is misleading.
>  
> One possible way to fix is to explicitly capture these statements in a grammar rule and print user-friendly error message such as
> {code:java}
> SHOW VIEW statements are not supported.
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org