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

ASF GitHub Bot updated SPARK-59536:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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]

Reply via email to