Repository navigation
Backport #90880 to 25.9: Add setting for compatibility serialziation of string - #91321
Merged
Merged
Conversation
robot-clickhouse
force-pushed
the
backport/25.9/90880
branch
from
December 2, 2025 15:16
96ee887 to
be317e2
Compare
Contributor
|
Workflow [BackportPR], commit [9acf51f] |
antonio2368
force-pushed
the
backport/25.9/90880
branch
from
December 5, 2025 08:25
db19dec to
6c7470b
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR backports a new setting serialize_string_in_memory_with_zero_byte to version 25.9 to maintain compatibility when querying clusters with mixed versions. The setting controls whether String values are serialized with a trailing zero byte during aggregation.
Key Changes:
- Adds a new boolean setting
serialize_string_in_memory_with_zero_byte(default:true) - Threads the setting through serialization/deserialization call chains
- Updates all column serialization methods to accept an optional
SerializationSettingsparameter - Removes duplicate
serializeAggregationStateValueIntoArenamethods in favor of unified serialization
Reviewed changes
Copilot reviewed 70 out of 71 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/Core/Settings.cpp |
Adds the new serialize_string_in_memory_with_zero_byte setting definition |
src/Core/SettingsChangesHistory.cpp |
Records the setting in version history for 25.8 and 25.9 |
src/Columns/IColumn.h |
Introduces SerializationSettings struct and updates method signatures |
src/Columns/ColumnString.cpp |
Implements conditional zero-byte serialization based on setting |
src/Interpreters/Aggregator.h/cpp |
Adds setting parameter to Params constructors |
src/Common/ColumnsHashing.h |
Creates HashMethodSerializedContext to pass settings through hash methods |
tests/integration/test_string_aggregation_compatibility/test.py |
Adds integration tests for cross-version compatibility |
| Multiple column implementation files | Updates all column types to pass SerializationSettings through call chains |
| Multiple aggregation files | Updates aggregation functions to use unified serialization with compatibility settings |
antonio2368
force-pushed
the
backport/25.9/90880
branch
from
December 5, 2025 08:54
6c7470b to
9acf51f
Compare
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.
Original pull-request #90880
Cherry-pick pull-request #91301
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job