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

Chao Sun updated HIVE-15507:
----------------------------
          Resolution: Fixed
       Fix Version/s: 2.2.0
    Target Version/s: 2.2.0
              Status: Resolved  (was: Patch Available)

Committed to the master branch. Thanks [~Ferd] for the review!

> Nested column pruning: fix issue when selecting struct field from array/map 
> element
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-15507
>                 URL: https://issues.apache.org/jira/browse/HIVE-15507
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Logical Optimizer, Physical Optimizer, 
> Serializers/Deserializers
>    Affects Versions: 2.2.0
>            Reporter: Chao Sun
>            Assignee: Chao Sun
>             Fix For: 2.2.0
>
>         Attachments: 15507.1.patch
>
>
> When running the following query:
> {code}
> SELECT count(col), arr[0].f
> FROM tbl
> GROUP BY arr[0].f
> {code}
> where {{arr}} is an array of struct with field {{f}}. Nested column pruning 
> will fail. This is because we currently process {{GenericUDFIndex}} in the 
> same way as any other UDF. In this case, it will generate path {{arr.f}}, 
> which will not match the struct type info when doing the pruning.
> Same thing for map.



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

Reply via email to