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

Chao Sun updated HIVE-15567:
----------------------------
    Description: 
For the following query:
{code}
SELECT some_array_col.some_struct_field from tbl
{code}
where {{some_array_col}} is an array of structs, we currently need to scan the 
entire array for all the struct fields, which is not optimal.
Ideally we should only scan the selected {{some_struct_field}} from all the 
array elements.

> Nested column pruning: further prune the case for SELECT array.struct_field 
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-15567
>                 URL: https://issues.apache.org/jira/browse/HIVE-15567
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Logical Optimizer, Physical Optimizer, 
> Serializers/Deserializers
>            Reporter: Chao Sun
>
> For the following query:
> {code}
> SELECT some_array_col.some_struct_field from tbl
> {code}
> where {{some_array_col}} is an array of structs, we currently need to scan 
> the entire array for all the struct fields, which is not optimal.
> Ideally we should only scan the selected {{some_struct_field}} from all the 
> array elements.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to