Skip to content

feat: puffin zstd compression/decompression - #1198

Open
proost wants to merge 2 commits into
apache:mainfrom
proost:feat-puffin-zstd-serde
Open

proost wants to merge 2 commits into
apache:mainfrom
proost:feat-puffin-zstd-serde

Conversation

@proost

@proost proost commented Nov 30, 2026

Copy link
Copy Markdown
Member

issue: #1192

This is first step. Adding zstd compression and decompression logic.

disclosure: I got helps from opus 5.5 for writing test code.

Comment thread src/iceberg/puffin/puffin_format.cc Resolved
Comment thread src/iceberg/test/puffin_format_test.cc Resolved
EXPECT_EQ(blob_result.second, ToBytes("hello puffin"));
}

TEST(PuffinRoundTripTest, ZstdCompressedBlobs) {

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.

The Java fixtures cover Java writer → C++ reader compatibility. Could we preserve a reverse-direction check for C++ writer →
Java reader as well? I verified it locally for empty, binary, repetitive, and incompressible payloads. The check should compare decoded payloads and metadata, since different zstd implementations can produce different valid compressed bytes.

@proost proost Dec 1, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Idea is good, But i don't expect including this PR. If we checks c++ -> java reader here, then we should cover go, python, rust also and other language have to do same ways vice-versa. I don't think that is realistic.

In datasketches, we have tck repo(https://github.com/apache/datasketches-tck) for that. iceberg has iceberg-verification for same reason.

I think iceberg also handles binary compatability checks there.

how do you think? I will send serialized file generation PR later.

This branch has not been deployed

No deployments
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