Aleksei Akhundov created SPARK-59536:
----------------------------------------
Summary: Parse hint-shaped comments nested in bracketed comments
Key: SPARK-59536
URL: https://issues.apache.org/jira/browse/SPARK-59536
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.0.0
Reporter: Aleksei Akhundov
Spark SQL fails to parse a valid nested bracketed comment when an inner comment
starts with the SQL hint prefix {{{}/*+{}}}.
Reproducer:
{{SELECT /* outer /*+ inner */ outer tail */ 1 AS col1}}
Expected behavior:
{{SELECT 1 AS col1}}
Actual behavior: the nested {{/*+ inner */}} comment is parsed as a SQL hint,
causing the remaining outer comment text to be parsed as SQL and the query to
fail
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]