Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges#94725
Merged
azat merged 1 commit intoClickHouse:masterfrom Jan 22, 2026
Conversation
Contributor
CurtizJ
approved these changes
Jan 21, 2026
742efd8 to
53897db
Compare
…after Vertical merges The problem was that just before creating index granularity the blocks_are_granules_size has been set to true in case of vertical merges, and this forces to use adaptive granulas But, we do not need this, since it is written before vertical merges anyway, vertical merges does not calculate index granularity
53897db to
86fcd89
Compare
Merged
via the queue into
ClickHouse:master
with commit Jan 22, 2026
e3bc468
130 of 132 checks passed
robot-ch-test-poll1
added a commit
that referenced
this pull request
Jan 22, 2026
Cherry pick #94725 to 25.8: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
robot-clickhouse
added a commit
that referenced
this pull request
Jan 22, 2026
…st_adaptive_granularity) after Vertical merges
robot-ch-test-poll1
added a commit
that referenced
this pull request
Jan 22, 2026
Cherry pick #94725 to 25.10: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
robot-clickhouse
added a commit
that referenced
this pull request
Jan 22, 2026
…nst_adaptive_granularity) after Vertical merges
robot-ch-test-poll1
added a commit
that referenced
this pull request
Jan 22, 2026
Cherry pick #94725 to 25.11: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
robot-clickhouse
added a commit
that referenced
this pull request
Jan 22, 2026
…nst_adaptive_granularity) after Vertical merges
robot-ch-test-poll1
added a commit
that referenced
this pull request
Jan 22, 2026
Cherry pick #94725 to 25.12: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
robot-clickhouse
added a commit
that referenced
this pull request
Jan 22, 2026
…nst_adaptive_granularity) after Vertical merges
clickhouse-gh bot
added a commit
that referenced
this pull request
Jan 22, 2026
Backport #94725 to 25.12: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
robot-ch-test-poll3
added a commit
that referenced
this pull request
Jan 22, 2026
Cherry pick #94725 to 25.3: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
robot-clickhouse
added a commit
that referenced
this pull request
Jan 22, 2026
…st_adaptive_granularity) after Vertical merges
clickhouse-gh bot
added a commit
that referenced
this pull request
Jan 22, 2026
Backport #94725 to 25.10: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
clickhouse-gh bot
added a commit
that referenced
this pull request
Jan 22, 2026
Backport #94725 to 25.11: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
clickhouse-gh bot
added a commit
that referenced
this pull request
Jan 22, 2026
Backport #94725 to 25.8: Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Preserve constant index granularity (use_const_adaptive_granularity) after Vertical merges
The problem was that just before creating index granularity the blocks_are_granules_size has been set to true in case of vertical merges, and this forces to use adaptive granulas
But, we do not need this, since it is written before vertical merges anyway, vertical merges does not calculate index granularity