Repository navigation
Backport #90880 to 25.11: Add setting for compatibility serialziation of string - #91329
Merged
Merged
Conversation
Contributor
|
Workflow [BackportPR], commit [8e0f96b] Summary: ❌
|
antonio2368
force-pushed
the
backport/25.11/90880
branch
from
December 5, 2025 08:50
09aea8a to
7ae516b
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements a new setting serialize_string_in_memory_with_zero_byte to control string serialization behavior during aggregation, enabling compatibility between ClickHouse versions. When enabled (default: true), strings are serialized with a trailing zero byte, maintaining compatibility with version 25.6 and earlier. The change affects string serialization in aggregation operations and related data structures.
Key Changes
- Added new boolean setting
serialize_string_in_memory_with_zero_bytewith default valuetrue - Modified column serialization interfaces to accept
SerializationSettingsparameter throughout the codebase - Updated aggregation methods and processors to propagate the setting through the serialization pipeline
Reviewed changes
Copilot reviewed 73 out of 74 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Core/Settings.cpp | Adds the new setting definition and documentation |
| src/Core/SettingsChangesHistory.cpp | Records the setting in version history for 25.11 and 25.8 |
| src/Columns/IColumn.h | Introduces SerializationSettings struct and updates serialization method signatures |
| src/Columns/ColumnString.cpp | Implements conditional zero-byte serialization based on setting |
| src/Interpreters/Aggregator.h/cpp | Adds setting to aggregator parameters and applies it during key serialization |
| src/Common/ColumnsHashing.h | Creates context for serialized hash methods with the setting |
| src/Interpreters/AggregationMethod.h/cpp | Updates method signatures to accept serialization settings |
| tests/integration/test_string_aggregation_compatibility/test.py | Adds integration tests verifying compatibility behavior |
| Multiple Column implementations | Updates all column types to support the new serialization interface |
| Multiple aggregate functions | Updates to use the new serialization settings for aggregation state |
antonio2368
force-pushed
the
backport/25.11/90880
branch
from
December 5, 2025 08:55
7ae516b to
8e0f96b
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 #91303
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