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

Rui Wang updated SPARK-39144:
-----------------------------
    Description: 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.

> 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
>            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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to