-
Notifications
You must be signed in to change notification settings - Fork 214
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
[connector] Fluss sink supports ignore_delete. #272
base: main
Are you sure you want to change the base?
Conversation
dbf95db
to
2dc0437
Compare
IGNORE_DELETE, | ||
|
||
/** | ||
* Operate normally based on PK + rowkind, suitable for scenarios that do not involve localized |
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.
What localized updates
means?
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.
partial update
is better, I will update it.
Row.ofKind(RowKind.INSERT, 2, 3502L, "Fabian"), | ||
Row.ofKind(RowKind.UPDATE_BEFORE, 2, 3502L, "Fabian"), | ||
Row.ofKind(RowKind.UPDATE_AFTER, 3, 3503L, "coco"))); | ||
tEnv.executeSql( |
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.
We should verify a stream with -D/-U change mode can write to a log sink with ignoreDelete
, but currently the source's changelog mode is +I only...
Btw, can we just use the public interface tableEnv.fromChangelogStream
to do the testing? I'd like not to introduce an external test jar flink-table-planner
since the test jar may change overtime and we may need to adjust our test then..
+ cdcSourceData | ||
+ "')"); | ||
tEnv.executeSql( | ||
"create table sink_test (a int not null, b bigint, c string) with('bucket.num' = '3', 'sink.delete-strategy'='IGNORE_DELETE')"); |
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.
nit: use ignore_delete
since user likely to use lowercase in table option
Purpose
Linked issue: close #251