[ https://issues.apache.org/jira/browse/SPARK-37389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-37389. --------------------------------- Fix Version/s: 3.3.0 3.2.1 Resolution: Fixed Issue resolved by pull request 34668 [https://github.com/apache/spark/pull/34668] > 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.3.0, 3.2.1 > > > 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