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

Uroš Bojanić resolved SPARK-59536.
----------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

Issue resolved by pull request 58826
[https://github.com/apache/spark/pull/58826]

> 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
>            Assignee: Aleksei Akhundov
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
> 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