Skip to content

refactor: Add manifest reader - #2884

Merged
blackmwk merged 6 commits into
apache:mainfrom
xanderbailey:xb/refactor_manifest_reader
Aug 20, 2026
Merged

blackmwk merged 6 commits into
apache:mainfrom
xanderbailey:xb/refactor_manifest_reader

Conversation

@xanderbailey

@xanderbailey xanderbailey commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Introduce a ManifestReader that encapsulates the manifest read -> (decrypt) -> parse sequence in one place, so callers no longer repeat it by hand.

Which issue does this PR close?

Closes #2881

What changes are included in this PR?

Are these changes tested?

Yes, both plain text and encrypted paths are tested.

@xanderbailey xanderbailey changed the title refactor: Add manifest reader struct refactor: Add manifest reader Jul 23, 2026
@xanderbailey

Copy link
Copy Markdown
Contributor Author

@blackmwk any chance of a review here? There is a follow up reactor I'd like to do to make the injection more type safe than it is today

@blackmwk blackmwk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @xanderbailey for this pr

@@ -179,23 +178,7 @@ impl ManifestFile {
///
/// This method will also initialize inherited values of [`ManifestEntry`](crate::spec::ManifestEntry), such as `sequence_number`.
pub async fn load_manifest(&self, file_io: &FileIO) -> Result<Manifest> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should remove this, the MainfestReader should be constructed by Table

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

All done!

@xanderbailey
xanderbailey force-pushed the xb/refactor_manifest_reader branch from 5e59b24 to 44ad7cb Compare August 12, 2026 09:49
Comment thread crates/iceberg/src/io/object_cache.rs Resolved

@blackmwk blackmwk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @xanderbailey for this pr!

@blackmwk
blackmwk merged commit 1ecd497 into apache:main Aug 20, 2026
21 checks passed
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.

Add a ManifestReader (symmetric to ManifestWriter) to encapsulate manifest read/decrypt/parse

2 participants