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

Wenchen Fan resolved SPARK-35618.
---------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

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

> Resolve star expressions in subquery
> ------------------------------------
>
>                 Key: SPARK-35618
>                 URL: https://issues.apache.org/jira/browse/SPARK-35618
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Allison Wang
>            Assignee: Allison Wang
>            Priority: Major
>             Fix For: 3.2.0
>
>
> Currently, Spark does not resolve star expressions in subqueries correctly. 
> It can only resolve the star expressions using the inner query attributes. 
> For example:
> {{CREATE VIEW t(a) AS VALUES (1), (2);}}
> {{SELECT * FROM t WHERE a in (SELECT t.*)}}
> {{SELECT * FROM t, LATERAL (SELECT t.*)}}
> {{org.apache.spark.sql.AnalysisException: cannot resolve 't.*' given input 
> columns '';}}
> Instead, we should try to resolve star expressions in subquery first using 
> the inner attributes and then using the outer query attributes.



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