Skip to content

Support the bzip2 and xz codecs - #45

Merged
alexey-milovidov merged 1 commit into
masterfrom
avro-bzip2-xz
Oct 25, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
avro-bzip2-xz

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

The Avro specification lists bzip2 and xz as optional codecs. This adds them to the C++ data file reader and writer, enabled by BZIP2_CODEC_AVAILABLE and XZ_CODEC_AVAILABLE. The Boost.Iostreams block compression and decompression is moved into the writeCompressedBlock and readCompressedBlock helpers, shared with deflate and zstandard.

Related: ClickHouse/ClickHouse#125147

🤖 Generated with Claude Code

…riter

The Avro specification lists them as optional codecs. They are enabled by
`BZIP2_CODEC_AVAILABLE` and `XZ_CODEC_AVAILABLE`. The block compression and
decompression through Boost.Iostreams filters is moved into the
`writeCompressedBlock` and `readCompressedBlock` helpers, shared with
`deflate` and `zstandard`.

Related: ClickHouse/ClickHouse#125147

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@alexey-milovidov alexey-milovidov left a comment

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.

Ok.

@alexey-milovidov alexey-milovidov self-assigned this Oct 25, 2026
@alexey-milovidov
alexey-milovidov merged commit dbaa4ab into master Oct 25, 2026
huldarchen pushed a commit to huldarchen/ClickHouse that referenced this pull request Oct 31, 2026
The Avro specification lists them as optional codecs. Reading such files failed
with `Unknown codec in data file`. They can also be written now with
`output_format_avro_codec`. The Boost.Iostreams filters for them are compiled
into the `avro` library, because Boost is added before `bzip2` and `xz`.

The test data files are from `apache/arrow-testing`.

Closes: ClickHouse#125147
Related: ClickHouse/avro#45

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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