You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Chao Sun (JIRA)" <ji...@apache.org> on 2016/12/23 17:43:58 UTC
[jira] [Created] (HIVE-15507) Nested column pruning: fix issue when
selecting struct field from array/map element
Chao Sun created HIVE-15507:
-------------------------------
Summary: 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
Affects Versions: 2.2.0
Reporter: Chao Sun
Assignee: Chao Sun
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)