Skip to content

Rewrite + Validation + ManifestFilter #2620

Draft
CTTY wants to merge 2 commits into
apache:mainfrom
CTTY:ctty/rewrite-new
Draft

Rewrite + Validation + ManifestFilter #2620
CTTY wants to merge 2 commits into
apache:mainfrom
CTTY:ctty/rewrite-new

Conversation

@CTTY

@CTTY CTTY commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

Are these changes tested?

@CTTY CTTY left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Java's ManifestFilterManager allows you to cache across multiple commit attempts. Since we only store transaction actions in a Transaction, we cannot do that easily. I haven't got a chance to think deeply on that

/// durable state lives within a single filtering pass, which matches the operation's
/// per-attempt lifetime (it is reconstructed deterministically on each commit retry).
#[derive(Debug, Default)]
pub(crate) struct ManifestFilterManager {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just a placeholder for now

// files/entries to drop, drop predicate, within-pass tracking, ...
}

impl ManifestFilterManager {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is a placeholder for now, we will need to add more concrete methods

deleted_delete_files: self.deleted_delete_files.clone(),
starting_snapshot_id: self.starting_snapshot_id,
data_sequence_number: self.data_sequence_number,
data_filter: ManifestFilterManager::default(),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think this will be enough, the actual filter manager implementation will need to have file io and related states

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.

1 participant