[ 
https://issues.apache.org/jira/browse/SPARK-31535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091299#comment-17091299
 ] 

Peter Toth commented on SPARK-31535:
------------------------------------

Hmm, for some reason my PR ([https://github.com/apache/spark/pull/28318]) 
didn't get linked to this ticket automatically.

> Fix nested CTE substitution
> ---------------------------
>
>                 Key: SPARK-31535
>                 URL: https://issues.apache.org/jira/browse/SPARK-31535
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Peter Toth
>            Priority: Blocker
>              Labels: correctness
>
> The following nested CTE should result empty result instead of {{1}}
> {noformat}
> WITH t(c) AS (SELECT 1)
> SELECT * FROM t
> WHERE c IN (
>   WITH t(c) AS (SELECT 2)
>   SELECT * FROM t
> )
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to