-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Core: Fanout equality/position delete writer #7313
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
Conversation
| * An position delete writer capable of writing to multiple specs and partitions that keeps position | ||
| * delete writer for each seen spec/partition pair open until this writer is closed. | ||
| */ | ||
| public class FanoutPositionDeleteWriter<T> |
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.
I doubt a fanout position delete writer is useful as the spec requires all position deletes within a file to be sorted by file name and position. That means the external process must at least locally order the incoming data. If a local sort is required, then we can include both spec ID and partition in the sort, which allows us to to use a clustered writer.
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.
Thanks! Your viewpoint is very correct. Actually, we only use FanoutEqualityDeleteWriter, I mistakenly believe that a equality deletes and position deletes are similar.
| * An equality delete writer capable of writing to multiple specs and partitions that keeps equality | ||
| * delete writer for each seen spec/partition pair open until this writer is closed. | ||
| */ | ||
| public class FanoutEqualityDeleteWriter<T> extends FanoutWriter<T, DeleteWriteResult> { |
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 would need to add tests, just like we have for FanoutDataWriter.
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 would need to add tests, just like we have for
FanoutDataWriter.
Okay, I'll try adding it
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
|
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time. |
Refer to clustered writer