Skip to content

Backport #131789 to 26.8: Check the aggregates of deserialized query plan steps against their input - #133174

Merged
clickhouse-gh[bot] merged 3 commits into
26.8from
backport/26.8/131789
Nov 20, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.8from
backport/26.8/131789

Conversation

@robot-ch-test-poll

@robot-ch-test-poll robot-ch-test-poll commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #131789

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

Version info

  • Merged into: 26.8.42.21

@robot-ch-test-poll robot-ch-test-poll added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Nov 20, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [05e6efe]

Summary: ✅

alexey-milovidov and others added 2 commits November 20, 2026 12:25
`AggregateDescription.h` declared functions taking `const Block &` without
including `Core/Block_fwd.h`, and `AggregateDescription.cpp` used `Block`
without including `Core/Block.h`; master gets them transitively.

`AggregatingStep::deserialize` referenced `only_merge`, which is not part of
the serialized `Aggregating` step in 26.8: the step is always deserialized
with `only_merge = false`, so only the check of the arguments applies.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=133174&sha=e90d0b4293bdc1a2975539b767a2879e96e95f0e&name_0=BackportPR
PR: #133174

Co-Authored-By: Claude Opus 5.5 <[email protected]>
26.8 supports query plan serialization version 10 (not 21), reads the
settings of a step with `readBinary` (a count, then name, flags and a
binary value), and has no merge-only flag in the serialized `Aggregating`
step, so the merge-only cases are removed. All remaining refusals were
checked against the server log to be the intended ones.

PR: #133174

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh
clickhouse-gh Bot merged commit ca51709 into 26.8 Nov 20, 2026
43 of 44 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.8/131789 branch November 20, 2026 14:29
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! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants