[
https://issues.apache.org/jira/browse/CALCITE-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17482240#comment-17482240
]
zoucao commented on CALCITE-4338:
---------------------------------
This is a useful function for distributed processing engine and DataLakeļ¼big +1
for this.
I am a new comer, but I found calcite has supported the basic merge statement,
including parser.jj#SqlMerge, SqlMerge node, SqlValidatorImpl#validateMerge.
Could anyone tell me the background of the above content, or should this ticket
be 'enhance merge statement' ?
please feel free if I make some misunderstands.
> 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)