Add table setting to change compression codec used for Kafka table engines#89073
Merged
antaljanosbenjamin merged 7 commits intomasterfrom Oct 30, 2025
Merged
Add table setting to change compression codec used for Kafka table engines#89073antaljanosbenjamin merged 7 commits intomasterfrom
antaljanosbenjamin merged 7 commits intomasterfrom
Conversation
Contributor
Member
Author
|
I have to add docs too. |
yariks5s
approved these changes
Oct 28, 2025
Empty string as a possible value is necessary in order to inherit configured values from config or the default value from librdkafka.
yariks5s
reviewed
Oct 29, 2025
| - `kafka_handle_error_mode` — How to handle errors for Kafka engine. Possible values: default (the exception will be thrown if we fail to parse a message), stream (the exception message and raw message will be saved in virtual columns `_error` and `_raw_message`), dead_letter_queue (error related data will be saved in system.dead_letter_queue). | ||
| - `kafka_commit_on_select` — Commit messages when select query is made. Default: `false`. | ||
| - `kafka_max_rows_per_message` — The maximum number of rows written in one kafka message for row-based formats. Default : `1`. | ||
| - `kafka_compression_codec` — Compression codec used for producing messages. Supported: empty string, `none`, `gzip`, `snappy`, `lz4`, `zstd`. In case of empty string the compression codec is not set by the table, thus values from the config files or default value from `librdkafka` will be used. Default: empty string. |
Member
There was a problem hiding this comment.
It's none above, in the CREATE statement
Suggested change
| - `kafka_compression_codec` — Compression codec used for producing messages. Supported: empty string, `none`, `gzip`, `snappy`, `lz4`, `zstd`. In case of empty string the compression codec is not set by the table, thus values from the config files or default value from `librdkafka` will be used. Default: empty string. | |
| - `kafka_compression_codec` — Compression codec used for producing messages. Supported: empty string, `none`, `gzip`, `snappy`, `lz4`, `zstd`. In case of empty string the compression codec is not set by the table, thus values from the config files or default value from `librdkafka` will be used. Default: `none`. |
Member
Author
There was a problem hiding this comment.
Let's change in the create statement above instead.
yariks5s
approved these changes
Oct 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
kafka_compression_codecandkafka_compression_levelsettings can now be used to specify the compression for Kafka producers in both Kafka engines.Documentation entry for user-facing changes