hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chao Sun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15507) Nested column pruning: fix issue when selecting struct field from array/map element
Date Mon, 02 Jan 2017 21:03:58 GMT

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

Mime
View raw message