Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13282

GroupBy and select operator encounter ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.2.1, 2.0.0, 2.1.0
    • None
    • Query Processor
    • None

    Description

      The group by and select operators run into the ArrayIndexOutOfBoundsException when they incorrectly initialize themselves with tag 0 but the incoming tag id is different.

      select count(*) from
      (select rt1.id from
      (select t1.key as id, t1.value as od from tab t1 group by key, value) rt1) vt1
      join
      (select rt2.id from
      (select t2.key as id, t2.value as od from tab_part t2 group by key, value) rt2) vt2
      where vt1.id=vt2.id;
      

      Attachments

        1. smb_groupby.q
          2 kB
          Matt McCline
        2. smb_groupby.q.out
          12 kB
          Matt McCline
        3. smb_fail_issue.patch
          0.6 kB
          Vikram Dixit K
        4. HIVE-13282.01.patch
          5 kB
          Matt McCline
        5. HIVE-13282.02.patch
          4 kB
          Sergey Shelukhin

        Activity

          People

            Unassigned Unassigned
            vikram.dixit Vikram Dixit K
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: