Repository navigation
Revert "Apply primary key pruning before read-time skip indexes on parallel replicas followers" - #126955
Merged
Conversation
…rallel replicas followers" This reverts #126145 (merge commit 1daec15): source changes and the test `05401_parallel_replicas_follower_skip_index_primary_key`. The declaration of `key_condition_not_applied` in `ReadFromMergeTree.h` was removed by hand, because `pk_condition_useful` was added next to it afterwards. A follower will take the ranges analyzed on the initiator from the coordinator instead of repeating the primary key analysis: #126954 Co-Authored-By: Claude Opus 5.5 <[email protected]>
nickitat
added a commit
that referenced
this pull request
Oct 20, 2026
The revert of #126145 is now a separate PR, #126955, which this one is stacked on. This branch already removed the same code, so its tree is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
nickitat
marked this pull request as ready for review
October 20, 2026 15:21
# Conflicts: # src/Processors/QueryPlan/ReadFromMergeTree.cpp
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):
Related: #126145
Related: #126954
Related: #124628
Reverts #126145: its source changes and the test
05401_parallel_replicas_follower_skip_index_primary_key. The declaration ofkey_condition_not_appliedinReadFromMergeTree.hwas removed by hand, becausepk_condition_usefulwas added next to it afterwards.#126145 made each parallel replicas follower repeat the primary key analysis to narrow its read-time skip-index input. #126954, stacked on this PR, replaces it: the follower takes the ranges analyzed on the initiator from the coordinator. The revert is a separate PR so that #126954 can be backported to 26.10, which never had #126145. This PR is not to be backported, and should be merged together with #126954, otherwise master is back to followers evaluating skip indexes over whole parts.
Workflow [PR]
Sync PR [sync-upstream/pr/126955]
Version info
26.11.1.528-master(included in26.11and later)