hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15307) Hive MERGE: "when matched then update" allows invalid column names.
Date Tue, 06 Dec 2016 20:12:58 GMT

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

Eugene Koifman updated HIVE-15307:
----------------------------------
    Attachment: HIVE-15307.01.patch

> Hive MERGE: "when matched then update" allows invalid column names.
> -------------------------------------------------------------------
>
>                 Key: HIVE-15307
>                 URL: https://issues.apache.org/jira/browse/HIVE-15307
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Transactions
>    Affects Versions: 2.2.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>         Attachments: HIVE-15307.01.patch
>
>
> {noformat}
> create table target (
>   id int, val int
> )
> CLUSTERED BY (id) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ("transactional"="true");
> create table source2 (
>   id int, val int
> );
> insert into source2 values (2, 25), (3, 35), (4, 45);
> merge into target
> using source2 sub on sub.id = target.id
> when matched then update set invalid = sub.val;
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message