jiaan.geng created SPARK-37389: ---------------------------------- Summary: 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
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