Skip to content

Backport #112009 to 26.7: Build only the statistics a mutation is supposed to recompute - #119733

Merged
clickhouse-gh[bot] merged 1 commit into
26.7from
backport/26.7/112009
Sep 13, 2026
Merged

clickhouse-gh[bot] merged 1 commit into
26.7from
backport/26.7/112009

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Manual backport of #112009 (author: @groeneai) to the 26.7 release branch. The cherry-pick applied cleanly.

Stress tests on 26.7 keep failing with the logical error Type mismatch when building statistics for column 'A': statistics expect type B but block has type C raised from ColumnsStatistics::buildIfExists in MutateTask, which then shows up as Cannot start clickhouse-server under TSan. The fix landed on master on 2026-07-27 and closed #111202, but 26.7 branched on 2026-07-22 and never received it. The failure has not appeared on master since the fix, while it keeps recurring on 26.7 and on backport PRs targeting it, most recently:

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=119676&sha=54f560567b444c61013e2000c049f8b7a97a007c&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29

Related: #112009
Related: #111202
Related: #119676

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Backport of #112009: A part-rewriting mutation now computes only the statistics it is supposed to recompute and carries the rest over from the source part, so a concurrent ALTER TABLE ... MODIFY COLUMN type change no longer raises the Type mismatch when building statistics logical error in MutateTask.

🤖 Generated with Claude Code

Version info

  • Merged into: 26.7.7.93

…election

Build only the statistics a mutation is supposed to recompute
@alexey-milovidov alexey-milovidov added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Sep 13, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [a6eea64]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). label Sep 13, 2026
@clickhouse-gh
clickhouse-gh Bot merged commit 60572f9 into 26.7 Sep 13, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/112009 branch September 13, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). 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.

2 participants