-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support MERGE #10174
Comments
@leiysky @andylokandy : SQL parser and Planner need your help and comments Thanks. |
there's a JOIN in the (in most of the time the right hand side is not very big, however MERGE also support the merging of two full tables totally, it can be viewed as a materializing the joined result back to the original table in a batch manner. |
Merge is a special logic plan(DML), it's not a join query as normal, the |
/assign me |
Done |
Summary
With MERGE, we can merge a
source table
into atarget table
by conditionallyinsert
,update
, ordelete
rows in batch, this is the best way to change data capture (CDC) big data.Example
Target Table
Stage Table
Merge Stage to Target
References:
[1] PostgreSQL: https://www.postgresql.org/docs/current/sql-merge.html
[2] Snowflake: https://docs.snowflake.com/en/sql-reference/sql/merge
The text was updated successfully, but these errors were encountered: