-
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
[core] Refactor: merge table-level ignore-delete options and filter delete data in writer layer #3128
Conversation
@@ -104,12 +101,8 @@ public void add(KeyValue kv) { | |||
// refresh key object to avoid reference overwritten | |||
currentKey = kv.key(); | |||
|
|||
// ignore delete? | |||
// ignore or retract? |
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.
remove this line? ignore what?
WriterContainer<T> container = getWriterWrapper(partition, bucket); | ||
container.writer.write(data); | ||
if (container.indexMaintainer != null) { | ||
container.indexMaintainer.notifyNewRecord(data); | ||
} | ||
} | ||
|
||
protected abstract boolean skipData(T data); |
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.
ignore in TableWriteImpl
.
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.
+1
Purpose
Skip delete data in
AbstractFileStoreWrite
.Additional changes:
DeleteAction
doesn't change merge-engine and ignore-delete now. I think it equals toDELETE
statement, so it shouldn't have other semantics.MergeIntoAction
changeignore-delete
tofalse
.Tests
API and Format
Deprecate:
first-row.ignore-delete
deduplicate.ignore-delete
partial-update.ignore-delete
Add:
ignore-delete
Documentation