Skip to content

Backport #128476 to 26.3: Check LowCardinality indexes against the dictionary when reading data parts - #128526

Merged
PedroTadim merged 3 commits into
26.3from
backport/26.3/128476
Nov 2, 2026
Merged

PedroTadim merged 3 commits into
26.3from
backport/26.3/128476

Conversation

@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

Original pull-request #128476

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

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Nov 1, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [4ac1c39]

Summary: ✅

@groeneai

groeneai commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

The 26.3 build fails only in the test this backport adds: gtest_low_cardinality_serialization.cpp:71 calls the master form of deserializeBinaryBulkWithMultipleStreams, while 26.3 still takes ColumnPtr & plus rows_offset (#111427 is not on 26.3). The src/ part compiles: the release and darwin builds of this PR are green.

A one-commit fix (2 lines in the test, a fast-forward of backport/26.3/128476) is on my fork. I cannot push to this branch; someone with write access can apply it with:

git fetch https://github.com/groeneai/ClickHouse fix-backport-26.3-128476 && git push origin FETCH_HEAD:backport/26.3/128476
-    auto column = type->createColumn();
-    serialization->deserializeBinaryBulkWithMultipleStreams(*column, rows, settings, state, nullptr);
+    ColumnPtr column = type->createColumn();
+    serialization->deserializeBinaryBulkWithMultipleStreams(column, 0, rows, settings, state, nullptr);

Checked on this branch with clang-21 (Debug, ENABLE_TESTS=1): the test compiles and both SerializationLowCardinality cases pass; with the SerializationLowCardinality.cpp change reverted, IndexPastTheKeysIsRejected fails.

PedroTadim and others added 2 commits November 2, 2026 12:35
…eStreams signature

26.3's `ISerialization::deserializeBinaryBulkWithMultipleStreams` takes a `rows_offset`
argument that master dropped, so the backported `gtest_low_cardinality_serialization.cpp`
called it with 5 arguments instead of 6 ("too few arguments to function call, expected 6,
have 5"). Pass `rows_offset = 0` so the whole column is deserialized from the start, matching
the `serializeBinaryBulkWithMultipleStreams(column, 0, column.size(), ...)` call above it.

#128526
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128526&sha=9d4ab398b3b4bdd7f059bbb2fa5e552712902681&name_0=BackportPR&name_1=Build%20%28amd_debug%29

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ryBulkWithMultipleStreams

26.3's `deserializeBinaryBulkWithMultipleStreams` takes `ColumnPtr & column` as its first argument,
whereas master takes `IColumn &`; the backported test passed `*column` (an `IColumn &`), which cannot
bind to `ColumnPtr &`. Hold the column as a `ColumnPtr` and pass it directly, as 26.3's own callers do
(e.g. `SerializationDetached`). Completes the previous commit, which only added the `rows_offset` argument.

#128526
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128526&sha=19312c0cc4c8f9306cfae883249fee2b3149c286&name_0=BackportPR&name_1=Build%20%28amd_debug%29

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@PedroTadim
PedroTadim merged commit e8ee06c into 26.3 Nov 2, 2026
36 checks passed
@PedroTadim
PedroTadim deleted the backport/26.3/128476 branch November 2, 2026 19:47
leshikus pushed a commit that referenced this pull request Nov 13, 2026
…eStreams signature

26.3's `ISerialization::deserializeBinaryBulkWithMultipleStreams` takes a `rows_offset`
argument that master dropped, so the backported `gtest_low_cardinality_serialization.cpp`
called it with 5 arguments instead of 6 ("too few arguments to function call, expected 6,
have 5"). Pass `rows_offset = 0` so the whole column is deserialized from the start, matching
the `serializeBinaryBulkWithMultipleStreams(column, 0, column.size(), ...)` call above it.

#128526
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128526&sha=9d4ab398b3b4bdd7f059bbb2fa5e552712902681&name_0=BackportPR&name_1=Build%20%28amd_debug%29

Co-Authored-By: Claude Opus 4.8 <[email protected]>
leshikus pushed a commit that referenced this pull request Nov 13, 2026
…ryBulkWithMultipleStreams

26.3's `deserializeBinaryBulkWithMultipleStreams` takes `ColumnPtr & column` as its first argument,
whereas master takes `IColumn &`; the backported test passed `*column` (an `IColumn &`), which cannot
bind to `ColumnPtr &`. Hold the column as a `ColumnPtr` and pass it directly, as 26.3's own callers do
(e.g. `SerializationDetached`). Completes the previous commit, which only added the `rows_offset` argument.

#128526
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128526&sha=19312c0cc4c8f9306cfae883249fee2b3149c286&name_0=BackportPR&name_1=Build%20%28amd_debug%29

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants