Jesus Camacho Rodriguez created HIVE-13804: ----------------------------------------------
Summary: Propagate constant expressions through insert Key: HIVE-13804 URL: https://issues.apache.org/jira/browse/HIVE-13804 Project: Hive Issue Type: Sub-task Components: CBO Affects Versions: 2.1.0 Reporter: Jesus Camacho Rodriguez Assignee: Jesus Camacho Rodriguez 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 {noformat} insert overwrite table testpartbucket partition(ds,hr) select key,value,'hello' as ds, 'world' as hr from srcpart where hr=11; {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)