Allison Wang created SPARK-35618:
------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]