Repository navigation
Backport #112009 to 26.7: Build only the statistics a mutation is supposed to recompute - #119733
Merged
Merged
Conversation
…election Build only the statistics a mutation is supposed to recompute
Contributor
|
Workflow [BackportPR], commit [a6eea64] Summary: ✅ |
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.
Manual backport of #112009 (author: @groeneai) to the
26.7release branch. The cherry-pick applied cleanly.Stress tests on
26.7keep failing with the logical errorType mismatch when building statistics for column 'A': statistics expect type B but block has type Craised fromColumnsStatistics::buildIfExistsinMutateTask, which then shows up asCannot start clickhouse-serverunder TSan. The fix landed on master on 2026-07-27 and closed #111202, but26.7branched on 2026-07-22 and never received it. The failure has not appeared on master since the fix, while it keeps recurring on26.7and 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):
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 COLUMNtype change no longer raises theType mismatch when building statisticslogical error inMutateTask.🤖 Generated with Claude Code
Version info
26.7.7.93