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

fix: fix delete files sequence comparison #1077

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chenzl25
Copy link
Contributor

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

  • Fix delete files sequence comparison.
  • For position delete, its sequence number should be greater than or equal to the data file sequence number
  • For equality delete, its sequence number should be greater than the data file sequence number

Are these changes tested?

.filter(|&delete| {
seq_num
.map(|seq_num| delete.manifest_entry.sequence_number() >= Some(seq_num))
.map(|seq_num| delete.manifest_entry.sequence_number() > Some(seq_num))
Copy link
Contributor

Choose a reason for hiding this comment

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

This line should not be changed?

Copy link
Contributor Author

@chenzl25 chenzl25 Mar 13, 2025

Choose a reason for hiding this comment

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

It seems we only put equality delete to the global deletes map, so I think it should be the same as equality delete handling logic. cc @sdd

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