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

BucketingSortingReduceSinkOptimizer throws IOB exception for duplicate columns

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Logical Optimizer
    • Labels:
      None

      Description

      set hive.enforce.bucketing=true;
      set hive.enforce.sorting=true;
      CREATE TABLE temp1
      (
          change int ,
          num int
      )
      CLUSTERED BY (num) SORTED BY (num) INTO 4 BUCKETS;
      
      create table temp2
      (  
        num int
      );
      explain 
      INSERT OVERWRITE TABLE temp1
      SELECT  num,  num
      FROM temp2;
      

        Attachments

        1. HIVE-12332.patch
          6 kB
          Ashutosh Chauhan
        2. HIVE-12332.patch
          6 kB
          Ashutosh Chauhan

          Issue Links

            Activity

              People

              • Assignee:
                ashutoshc Ashutosh Chauhan
                Reporter:
                ashutoshc Ashutosh Chauhan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: