Skip to content

fix(table): support gzipped metadata json#610

Merged
zeroshade merged 1 commit intoapache:mainfrom
hamilton-earthscope:gzipped-meta
Oct 24, 2025
Merged

fix(table): support gzipped metadata json#610
zeroshade merged 1 commit intoapache:mainfrom
hamilton-earthscope:gzipped-meta

Conversation

@hamilton-earthscope
Copy link
Contributor

This PR adds support for gzipped metadata json files.

While the spec (linked above) implies .gz.metadata.json is the standard, it mentions that the java implementation also supports reading metadata.json.gz. As written, this PR supports both, but I will defer to your guidance. FWIW, pyiceberg only supports .gz.metadata.json.

@zeroshade zeroshade self-requested a review October 24, 2025 19:48
Copy link
Member

@zeroshade zeroshade left a comment

Choose a reason for hiding this comment

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

Should we add an option to write gzipped metadata?

@hamilton-earthscope
Copy link
Contributor Author

I think it makes sense to support writing gzipped metadata, however I would prefer that be implemented separately as an improvement/feature. This fix will unblock me in the short term.

@zeroshade zeroshade merged commit 8589652 into apache:main Oct 24, 2025
8 checks passed
zeroshade pushed a commit that referenced this pull request Oct 28, 2025
Followup to #610 ; add write support for gzipped table metadata.

Behavior is optional and enabled when table property
`write.metadata.compression-codec` is set to `gzip`
@hamilton-earthscope hamilton-earthscope deleted the gzipped-meta branch October 28, 2025 18:20
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