[ 
https://issues.apache.org/jira/browse/SPARK-37471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17449471#comment-17449471
 ] 

Apache Spark commented on SPARK-37471:
--------------------------------------

User 'AngersZhuuuu' has created a pull request for this issue:
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
>            Priority: Major
>
> {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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to