Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hailin0
Copy link
Member

@hailin0 hailin0 commented Nov 21, 2024

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

@hailin0 hailin0 force-pushed the dev-support-iceberg-delete-sql branch 2 times, most recently from 6d32ff1 to 555d50c Compare November 21, 2024 05:14
@hailin0 hailin0 force-pushed the dev-support-iceberg-delete-sql branch from 555d50c to 5b67e23 Compare November 21, 2024 12:45
@@ -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 ...` |
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

@hailin0 hailin0 Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants