[
https://issues.apache.org/jira/browse/SPARK-58772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-58772:
-----------------------------------
Labels: pull-request-available (was: )
> SelectedField drops column metadata during nested column pruning
> ----------------------------------------------------------------
>
> Key: SPARK-58772
> URL: https://issues.apache.org/jira/browse/SPARK-58772
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Shixiong Zhu
> Assignee: Shixiong Zhu
> Priority: Major
> Labels: pull-request-available
>
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]