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

Uroš Bojanić reassigned SPARK-62361:
------------------------------------

    Assignee: Mihailo Aleksic

> Move by-name Union column alignment into UnionByNameTransformer
> ---------------------------------------------------------------
>
>                 Key: SPARK-62361
>                 URL: https://issues.apache.org/jira/browse/SPARK-62361
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Mihailo Aleksic
>            Assignee: Mihailo Aleksic
>            Priority: Major
>              Labels: pull-request-available
>
> ResolveUnion aligns the children of a by-name Union (unionByName) with 
> private methods that read the child outputs from the child plans and create 
> new columns with Alias directly. Move this alignment into a new 
> UnionByNameTransformer object, next to PivotTransformer and 
> UnpivotTransformer. Its entry point should take the child outputs and the 
> function that builds new columns as parameters, and return the aligned 
> children together with their outputs. ResolveUnion keeps its current behavior 
> by passing the plan outputs and Alias. This lets the single-pass analyzer 
> reuse the alignment when it adds unionByName support. It keeps the child 
> outputs in its name scopes instead of reading .output from resolved children, 
> and creates new aliases through its own alias provider so that new expression 
> IDs are tracked.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to