-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[flink] Add merge-engine check when executing row level batch update and delete #3181
Conversation
|
||
FIRST_ROW("first-row", "De-duplicate and keep the first row."); | ||
FIRST_ROW("first-row", "De-duplicate and keep the first row.", true, false); |
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.
first-row does not need to support update
|
||
PARTIAL_UPDATE("partial-update", "Partial update non-null fields."), | ||
PARTIAL_UPDATE("partial-update", "Partial update non-null fields.", false, false), |
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.
When using partial-update and no col contains agg, update is theoretically supported
|
||
private final String value; | ||
private final String description; | ||
|
||
MergeEngine(String value, String description) { | ||
private final boolean supportBatchUpdate; |
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.
Please do not modify this, this is public api, we don't need to expose here.
+1 |
Purpose
partial-update and aggregate should not accept batch update because there is no UB and the aggregate result will be wrong.
It's not very clear about how to handle row level batch delete with partial update currently. Doris just delete the record. But it's not easy to delete the record because [core] Refactor: merge table-level ignore-delete options and filter delete data in writer layer #3128 and [core] Fix that ignore-delete option is not compatible with old delete records and LocalMergeOperator #3139 .
Linked issue: close #xxx
Tests
API and Format
Support batch update merge engines:
deduplicate
andfirst-row
.Support batch delete merge engines:
deduplicate
.Documentation