You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/07/01 09:24:00 UTC
[jira] [Assigned] (SPARK-35618) Resolve star expressions in
subquery
[ https://issues.apache.org/jira/browse/SPARK-35618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan reassigned SPARK-35618:
-----------------------------------
Assignee: Allison Wang
> 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
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org