[ https://issues.apache.org/jira/browse/HIVE-15507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao Sun updated HIVE-15507: ---------------------------- Status: Patch Available (was: Open) > 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 > 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)