hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Weeks (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-17061) Add Support for Column List in Insert Clause
Date Fri, 07 Jul 2017 21:29:00 GMT

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

Shawn Weeks updated HIVE-17061:
-------------------------------
    Description: 
Include support for a list of columns in the insert clause of the merge statement.

{code}
MERGE INTO target 
USING source ON b = y
WHEN MATCHED AND c + 1 + z > 0
THEN UPDATE SET a = 1, c = z
WHEN NOT MATCHED AND z IS NULL
THEN INSERT(a,b) VALUES(z, 7)
{code}

  was:
Include support for a list of columns in the insert clause of the merge statement.

<code>
MERGE INTO target 
USING source ON b = y
WHEN MATCHED AND c + 1 + z > 0
THEN UPDATE SET a = 1, c = z
WHEN NOT MATCHED AND z IS NULL
THEN INSERT(a,b) VALUES(z, 7)
<code>


> Add Support for Column List in Insert Clause
> --------------------------------------------
>
>                 Key: HIVE-17061
>                 URL: https://issues.apache.org/jira/browse/HIVE-17061
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Shawn Weeks
>            Priority: Minor
>
> Include support for a list of columns in the insert clause of the merge statement.
> {code}
> MERGE INTO target 
> USING source ON b = y
> WHEN MATCHED AND c + 1 + z > 0
> THEN UPDATE SET a = 1, c = z
> WHEN NOT MATCHED AND z IS NULL
> THEN INSERT(a,b) VALUES(z, 7)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message