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

Dongjoon Hyun updated SPARK-58772:
----------------------------------
    Labels: correctness pull-request-available  (was: pull-request-available)

> SelectedField drops column metadata during nested column pruning
> ----------------------------------------------------------------
>
>                 Key: SPARK-58772
>                 URL: https://issues.apache.org/jira/browse/SPARK-58772
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.1.0, 4.0.0, 4.2.0, 4.3.0
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>            Priority: Major
>              Labels: correctness, pull-request-available
>             Fix For: 4.4.0, 4.3.1
>
>
> When SelectedField prunes nested columns, it doesn't copy column metadata at 
> the following two places:
>  * 
> [https://github.com/apache/spark/blob/042ad7d0c4ac1c4d3e9fdeb48e2695fdeb861135/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SelectedField.scala#L88]
>  * 
> [https://github.com/apache/spark/blob/042ad7d0c4ac1c4d3e9fdeb48e2695fdeb861135/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SelectedField.scala#L112]
> This can cause column metadata to be dropped and downstream cannot see the 
> column metadata. 



--
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