You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/12/03 16:22:00 UTC

[jira] [Resolved] (SPARK-37471) spark-sql support nested bracketed comment

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

Wenchen Fan resolved SPARK-37471.
---------------------------------
    Fix Version/s: 3.3.0
                   3.2.1
       Resolution: Fixed

Issue resolved by pull request 34721
[https://github.com/apache/spark/pull/34721]

> spark-sql support nested bracketed comment
> ------------------------------------------
>
>                 Key: SPARK-37471
>                 URL: https://issues.apache.org/jira/browse/SPARK-37471
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: angerszhu
>            Assignee: angerszhu
>            Priority: Major
>             Fix For: 3.3.0, 3.2.1
>
>
> {code}
> /*
> select  
> select /* BROADCAST(b) */ 4\\;
> */
> select  1
> ;
> {code}
> failed in spark-sql -f 
> {code}
> /usr/share/spark-3.2/bin/spark-sql --verbose  -f test.sql
> {code}
> {code}
> Spark master: yarn, Application Id: application_1632999510150_6968442
> /* sielect /* BROADCAST(b) */ 4
> Error in query:
> mismatched input '4' expecting {'(', 'ADD', 'ALTER', 'ANALYZE', 'CACHE', 'CLEAR', 'COMMENT', 'COMMIT', 'CREATE', 'DELETE', 'DESC', 'DESCRIBE', 'DFS', 'DROP', 'EXPLAIN', 'EXPORT', 'FROM', 'GRANT', 'IMPORT', 'INSERT', 'LIST', 'LOAD', 'LOCK', 'MAP', 'MERGE', 'MSCK', 'REDUCE', 'REFRESH', 'REPLACE', 'RESET', 'REVOKE', 'ROLLBACK', 'SELECT', 'SET', 'SHOW', 'START', 'TABLE', 'TRUNCATE', 'UNCACHE', 'UNLOCK', 'UPDATE', 'USE', 'VALUES', 'WITH'}(line 1, pos 30)
> == SQL ==
> /* sielect /* BROADCAST(b) */ 4
> ------------------------------^^^
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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