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

GenericUDTFGetSplits fails when order by query returns 0 rows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0, 4.0.0
    • 3.1.0, 4.0.0, 4.0.0-alpha-1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: