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)

Reply via email to