Description
A SQL statement that contains a comment with an unmatched quote character can lead to a parse error. These queries parsed correctly in older versions of Spark. For example, here's an excerpt from an interactive spark-sql session on a recent Spark-3.0.0-SNAPSHOT build (commit e23c135e568d4401a5659bc1b5ae8fc8bf147693):
spark-sql> SELECT 1 -- someone's comment here > ; Error in query: extraneous input ';' expecting <EOF>(line 2, pos 0) == SQL == SELECT 1 -- someone's comment here ; ^^^
Attachments
Attachments
Issue Links
- causes
-
SPARK-31102 spark-sql fails to parse when contains comment
- Resolved
- is related to
-
SPARK-26321 Split a SQL in a correct way
- Resolved
- links to