You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Remus Rusanu (JIRA)" <ji...@apache.org> on 2017/02/02 09:52:51 UTC

[jira] [Assigned] (HIVE-13804) Propagate constant expressions through insert

     [ https://issues.apache.org/jira/browse/HIVE-13804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remus Rusanu reassigned HIVE-13804:
-----------------------------------

    Assignee: Remus Rusanu  (was: Jesus Camacho Rodriguez)

> 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: Remus Rusanu
>
> 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.15#6346)