Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10977

Make zipping unnest work with absolute paths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 4.1.0
    • None
    • Frontend

    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

          Activity

            People

              Unassigned Unassigned
              gaborkaszab Gabor Kaszab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: