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

Wenchen Fan resolved SPARK-40297.
---------------------------------
    Fix Version/s: 3.4.0
                   3.3.1
         Assignee: Wei Xue
       Resolution: Fixed

> CTE outer reference nested in CTE main body cannot be resolved
> --------------------------------------------------------------
>
>                 Key: SPARK-40297
>                 URL: https://issues.apache.org/jira/browse/SPARK-40297
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Wei Xue
>            Assignee: Wei Xue
>            Priority: Minor
>             Fix For: 3.4.0, 3.3.1
>
>
> AnalysisException "Table or view not found" is thrown when a CTE reference 
> occurs in an inner CTE definition nested in the outer CTE's main body FROM 
> clause. E.g.,
> {code}
> WITH cte_outer AS (
>   SELECT 1
> )
> SELECT * FROM (
>   WITH cte_inner AS (
>     SELECT * FROM cte_outer
>   )
>   SELECT * FROM cte_inner
> )
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to