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

GenericUDTFGetSplits fails when order by query returns 0 rows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0, 4.0.0
    • Fix Version/s: 3.1.0, 4.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When order by query returns 0 rows, there will not be any files in temporary table location for GenericUDTFGetSplits

      which results in the following exception

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:217)
        at org.apache.hadoop.hive.ql.udf.generic.GenericUDTFGetSplits.getSplits(GenericUDTFGetSplits.java:420)
        ... 52 more

        Attachments

        1. HIVE-19980.3.patch
          5 kB
          Prasanth Jayachandran
        2. HIVE-19980.2.patch
          5 kB
          Prasanth Jayachandran
        3. HIVE-19980.1.patch
          5 kB
          Prasanth Jayachandran

          Issue Links

            Activity

              People

              • Assignee:
                prasanth_j Prasanth Jayachandran
                Reporter:
                kbadani Kshitij Badani
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: