Skip to content

fix(manifest): Interpret manifest files written without content metadata as data files - #545

Merged
zeroshade merged 2 commits into
apache:mainfrom
joellubi:v1-missing-content-compat
Aug 22, 2025
Merged

zeroshade merged 2 commits into
apache:mainfrom
joellubi:v1-missing-content-compat

Conversation

@joellubi

Copy link
Copy Markdown
Member

fixes: #544

V1 writers may not specify content at all when writing manifest files, but since this predates delete files these should be interpretted as data files (https://iceberg.apache.org/spec/#manifests).

Side Note: It could be helpful to have a iceberg-testing repo similar to parquet-testing or arrow-testing that contains a bunch of files serialized to different standards of the spec. I don't know if this exists already but it was a bit tricky producing a manifest file to use for a unit test since the V1 writer included writes content=data for compatibility. I started creating new writer that omits that one field but it seemed like more to maintain than it was worth for that one test.

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Thanks for this. I agree that an iceberg-testing repo would be extremely helpful. I don't have the time currently to put that forth, but it would be worth seeing if anyone else might step forward to try it out.

Just one nitpick that is take-it-or-leave-it

Comment thread manifest.go Resolved
@zeroshade
zeroshade merged commit d188a8e into apache:main Aug 22, 2025
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.

Error reading V1 manifest files that don't contain content field in header metadata

2 participants