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

Wrong plan for hive.optimize.sort.dynamic.partition=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.0, 2.2.0
    • 2.1.0
    • Physical Optimizer
    • None

    Description

      To reproduce:

      set hive.support.concurrency=true;
      set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
      set hive.exec.dynamic.partition.mode=nonstrict;
      set hive.optimize.sort.dynamic.partition=true;
      
      CREATE TABLE non_acid(key string, value string) PARTITIONED BY(ds string, hr int) CLUSTERED BY(key) INTO 2 BUCKETS STORED AS ORC;
      
      explain insert into table non_acid partition(ds,hr) select * from srcpart sort by value;
      

      CC'ed ashutoshc, ekoifman

      Attachments

        1. HIVE-13849.01.patch
          18 kB
          jcamachorodriguez
        2. HIVE-13849.patch
          8 kB
          jcamachorodriguez

        Activity

          People

            jcamacho Jesús Camacho Rodríguez
            jcamacho Jesús Camacho Rodríguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: