You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Peter Toth (Jira)" <ji...@apache.org> on 2020/04/23 18:41:00 UTC

[jira] [Created] (SPARK-31535) Fix nested CTE substitution

Peter Toth created SPARK-31535:
----------------------------------

             Summary: 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


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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org