-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature][Iceberg] Support custom delete sql for sink savemode #8094
base: dev
Are you sure you want to change the base?
Conversation
6d32ff1
to
555d50c
Compare
555d50c
to
5b67e23
Compare
@@ -76,6 +76,7 @@ libfb303-xxx.jar | |||
| iceberg.table.upsert-mode-enabled | boolean | no | false | Set to `true` to enable upsert mode, default is `false` | | |||
| schema_save_mode | Enum | no | CREATE_SCHEMA_WHEN_NOT_EXIST | the schema save mode, please refer to `schema_save_mode` below | | |||
| data_save_mode | Enum | no | APPEND_DATA | the data save mode, please refer to `data_save_mode` below | | |||
| custom_sql | string | no | - | Custom `delete` data sql for data save mode. e.g: `delete from ... where ...` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basic lgtm. But I'm a little worried, is that the all connector of not support sql we would use our own sql style to support delete by SQL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, iceberg has a data deletion API that is very similar to the SQL language style, which is the premise for implementing this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide some link into doc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purpose of this pull request
[Iceberg] Support custom delete sql for sink savemode
Does this PR introduce any user-facing change?
Add new config
How was this patch tested?
Added
Check list
New License Guide
release-note
.