Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12899 Bring query optimization time down
  3. HIVE-13804

Propagate constant expressions through insert

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • CBO
    • None

    Description

      Follow-up of HIVE-13068.

      The problem is that CBO optimizes the select query and then the insert part of the query is attached; after HIVE-13068, ConstantPropagate in Hive does not kick in anymore because CBO optimized the plan, thus we may miss opportunity to propagate constant till the top of the plan.

      Ex. ql/src/test/results/clientpositive/cp_sel.q.out

      insert overwrite table testpartbucket partition(ds,hr) select key,value,'hello' as ds, 'world' as hr from srcpart where hr=11;
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: