Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Impala 4.1.0
-
None
-
ghx-label-9
Description
IMPALA-10920 introduced zipping unnest that has the following syntax:
SELECT arr1.item, arr2.item FROM tbl t, UNNEST(t.arr1, t.arr2)
However, If the arrays are given with absolute path then the query doesn't work:
SELECT arr1.item, arr2.item FROM UNNEST(tbl.arr1, tbl.arr2)
The reason partly is because in SingleNodePlanner.createTableRefNode() the UNNEST node is only created when relative path is provided. As a result the memory layout for the tuples related to the unnest won't be computed and a check will fail.
But even if we create an UNNEST node even for absolute paths the plan tree will be wrong as there won't be any SUBPLAN and SCAN nodes, so in this case it should be handled separately to also add that part into the tree not just the UNNEST node.
Attachments
Issue Links
- depends upon
-
IMPALA-10920 UNNEST function for arrays in the select list
- Closed