Skip to content

Revert "Apply primary key pruning before read-time skip indexes on parallel replicas followers" - #126955

Merged
nickitat merged 3 commits into
masterfrom
revert-126145
Oct 22, 2026
Merged

nickitat merged 3 commits into
masterfrom
revert-126145

Conversation

@nickitat

@nickitat nickitat commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Related: #126145
Related: #126954
Related: #124628

Reverts #126145: its 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.

#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

  • Merged into: 26.11.1.528-master (included in 26.11 and later)

…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]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [99f012e]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 20, 2026
@nickitat
nickitat added this pull request to stack #126957 October 20, 2026 13:30
@clickhouse-gh clickhouse-gh Bot added the comp-parallel-replicas Parallel reading from replicas for query speed (not data replication consistency). label Oct 20, 2026
@nickitat
nickitat marked this pull request as ready for review October 20, 2026 15:21
@nickitat
nickitat added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit 1b93d14 Oct 22, 2026
179 checks passed
@nickitat
nickitat deleted the revert-126145 branch October 22, 2026 10:11
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-parallel-replicas Parallel reading from replicas for query speed (not data replication consistency). pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants