Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1.0
-
None
-
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
- relates to
-
HIVE-13068 Disable Hive ConstantPropagate optimizer when CBO has optimized the plan II
- Closed