[ https://issues.apache.org/jira/browse/CALCITE-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17482220#comment-17482220 ]
Jing Zhang commented on CALCITE-4338: ------------------------------------- +1 on this feature. MERGE is also available starting in Hive 2.2. Doc: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Merge > 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.20.1#820001)