[
https://issues.apache.org/jira/browse/SPARK-39144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan reassigned SPARK-39144:
-----------------------------------
Assignee: Rui Wang
> Nested subquery expressions deduplicate relations should be done bottom up
> --------------------------------------------------------------------------
>
> Key: SPARK-39144
> URL: https://issues.apache.org/jira/browse/SPARK-39144
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.3.0
> Reporter: Rui Wang
> Assignee: Rui Wang
> Priority: Major
>
> When we have nested subquery expressions, there is a chance that deduplicate
> relations could replace an attributes with a wrong one. This is because the
> attributes replacement is done by top down than bottom up. This could happen
> if the subplan gets deduplicate relations first (thus two same relation with
> different attributes id), then a more complex plan built on top of the
> subplan (e.g. a UNION of queries with nested subquery expressions) can
> trigger this wrong attribute replacement error.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]