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

Wenchen Fan updated SPARK-37389:
--------------------------------
    Fix Version/s: 3.1.3

> Check unclosed bracketed comments
> ---------------------------------
>
>                 Key: SPARK-37389
>                 URL: https://issues.apache.org/jira/browse/SPARK-37389
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: jiaan.geng
>            Assignee: jiaan.geng
>            Priority: Major
>             Fix For: 3.1.3, 3.2.1, 3.3.0
>
>
> The SQL below has unclosed bracketed comment.
> {code:java}
> /*abc*/
> select 1 as a
> /*
> 2 as b
> /*abc*/
> , 3 as c
> /**/
> ;
> {code}
> But Spark will output:
> a
> 1
> PostgreSQL also supports the feature, and output:
> {code:java}
> SQL 错误 [42601]: Unterminated block comment started at position 47 in SQL 
> /*abc*/         -- block comment
> select 1 as a
> /*
> 2 as b
> /*abc*/
> , 3 as c
> /**/
> . Expected */ sequence
> {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