[jira] [Assigned] (SPARK-42163) Schema pruning fails on non-foldable array index or map key

2023-01-30 Thread Wenchen Fan (Jira)


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

Wenchen Fan reassigned SPARK-42163:
---

Assignee: David Cashman

> Schema pruning fails on non-foldable array index or map key
> ---
>
> Key: SPARK-42163
> URL: https://issues.apache.org/jira/browse/SPARK-42163
> Project: Spark
>  Issue Type: Bug
>  Components: Optimizer
>Affects Versions: 3.2.3
>Reporter: David Cashman
>Assignee: David Cashman
>Priority: Major
> Fix For: 3.4.0
>
>
> Schema pruning tries to extract selected fields from struct extractors. It 
> looks through GetArrayItem/GetMapItem, but when doing so, it ignores the 
> index/key, which may itself be a struct field. If it is a struct field that 
> is not otherwise selected, and some other field of the same attribute is 
> selected, then pruning will drop the field, resulting in an optimizer error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-42163) Schema pruning fails on non-foldable array index or map key

2023-01-24 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-42163:


Assignee: Apache Spark

> Schema pruning fails on non-foldable array index or map key
> ---
>
> Key: SPARK-42163
> URL: https://issues.apache.org/jira/browse/SPARK-42163
> Project: Spark
>  Issue Type: Bug
>  Components: Optimizer
>Affects Versions: 3.2.3
>Reporter: David Cashman
>Assignee: Apache Spark
>Priority: Major
>
> Schema pruning tries to extract selected fields from struct extractors. It 
> looks through GetArrayItem/GetMapItem, but when doing so, it ignores the 
> index/key, which may itself be a struct field. If it is a struct field that 
> is not otherwise selected, and some other field of the same attribute is 
> selected, then pruning will drop the field, resulting in an optimizer error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-42163) Schema pruning fails on non-foldable array index or map key

2023-01-24 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-42163:


Assignee: (was: Apache Spark)

> Schema pruning fails on non-foldable array index or map key
> ---
>
> Key: SPARK-42163
> URL: https://issues.apache.org/jira/browse/SPARK-42163
> Project: Spark
>  Issue Type: Bug
>  Components: Optimizer
>Affects Versions: 3.2.3
>Reporter: David Cashman
>Priority: Major
>
> Schema pruning tries to extract selected fields from struct extractors. It 
> looks through GetArrayItem/GetMapItem, but when doing so, it ignores the 
> index/key, which may itself be a struct field. If it is a struct field that 
> is not otherwise selected, and some other field of the same attribute is 
> selected, then pruning will drop the field, resulting in an optimizer error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org