You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chunwei Lei (Jira)" <ji...@apache.org> on 2020/10/16 06:30:00 UTC

[jira] [Commented] (CALCITE-4338) Support MERGE INTO Clause

    [ https://issues.apache.org/jira/browse/CALCITE-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215214#comment-17215214 ] 

Chunwei Lei commented on CALCITE-4338:
--------------------------------------

Just out of curiosity, do other systems support this syntax except for Hive, Oracle?

> Support MERGE INTO Clause
> -------------------------
>
>                 Key: CALCITE-4338
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4338
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Forward Xu
>            Priority: Major
>
> {code:java}
> MERGE INTO target_table 
>  USING source_table 
>  ON search_condition
>  WHEN MATCHED THEN
>  UPDATE SET col1 = value1, col2 = value2,...
>  WHERE <update_condition>
>  [DELETE WHERE <delete_condition>]
>  WHEN NOT MATCHED THEN
>  INSERT (col1,col2,...)
>  values(value1,value2,...)
>  WHERE <insert_condition>;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)