Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.2.0
-
None
Description
When running the following query:
SELECT count(col), arr[0].f FROM tbl GROUP BY arr[0].f
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.
Attachments
Attachments
Issue Links
- relates to
-
HIVE-15537 Nested column pruning: fix issue when selecting struct field from array/map element (part 2)
- Resolved