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

[core] Refactor: merge table-level ignore-delete options and filter delete data in writer layer #3128

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

yuzelin
Copy link
Contributor

@yuzelin yuzelin commented Apr 1, 2024

Purpose

Skip delete data in AbstractFileStoreWrite.

Additional changes:

  1. DeleteAction doesn't change merge-engine and ignore-delete now. I think it equals to DELETE statement, so it shouldn't have other semantics.
  2. MergeIntoAction change ignore-delete to false.

Tests

API and Format

Deprecate:
first-row.ignore-delete
deduplicate.ignore-delete
partial-update.ignore-delete
Add:
ignore-delete

Documentation

@@ -104,12 +101,8 @@ public void add(KeyValue kv) {
// refresh key object to avoid reference overwritten
currentKey = kv.key();

// ignore delete?
// ignore or retract?
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

ignore in TableWriteImpl.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

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

Successfully merging this pull request may close these issues.

2 participants