Repository navigation
PR: adding parallel_replicas_filter_pushdown setting - #95510
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [d8d3765] Summary: ❌
|
Member
|
Ok. Mark the setting as Beta. In the subsequent PR (if not end up fixing), disable the setting in the Stress test, AST Fuzzer, and BuzzHouse configs to prevent red CI. |
alexey-milovidov
approved these changes
Jan 30, 2026
This was referenced Jan 30, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Jan 30, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Jan 30, 2026
clickhouse-gh Bot
added a commit
that referenced
this pull request
Jan 30, 2026
Backport #95510 to 26.1: PR: adding parallel_replicas_filter_pushdown setting
clickhouse-gh Bot
added a commit
that referenced
this pull request
Jan 30, 2026
Backport #95510 to 25.12: PR: adding parallel_replicas_filter_pushdown setting
nickitat
added a commit
that referenced
this pull request
Aug 31, 2026
`parallel_replicas_filter_pushdown` gates two different things. On the remote half of the read it splices the predicate into the query AST shipped to the replicas (`ReadFromParallelRemoteReplicasStep::initializePipeline` -> `addFilters`). On the local half it only moves a `Filter` into the plan fragment the initiator runs itself, which is an ordinary in-process plan optimization - the fragment is then optimized like any other plan, so the predicate becomes a `PREWHERE` and prunes the index. Stop gating the local half. `ReadFromLocalParallelReplicaStep` exists only when `canUseLocalPlanForParallelReplicas` accepted the query, so this is exactly "ignore the setting in local mode"; the setting keeps governing the remote query, where the AST surgery lives. Nothing is filtered on the initiator only: the union push-down clones the `Filter` into both branches and pushing into a `SourceStepWithFilterBase` keeps the step, so the remote branch still filters what the replicas send back. The replicas also need not agree on which ranges the local plan reads - each announces its own and the coordinator reconciles them. The push-down used to be unconditional; the setting was added in #95510 to mitigate #95524, where a filter reaching the local plan let `optimize_aggregation_in_order` pick a coordination mode the replicas did not use ("Replica 1 decided to read in WithOrder mode, not in ReverseOrder"). That was fixed at its root in #98467, and the local plan now inherits the read-in-order gates from the subquery's own settings, so the mitigation is no longer needed. `03787_pr_group_by_read_mode_error`, `03810_pr_aggr_in_order_read_mode` and `04009_pr_aggr_in_order_coordination_mode` cover it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WCAGFHu72JG9die3EDo8t4
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.
parallel_replicas_filter_pushdownsetting to enable/disable parallel replicas filter pushdown functionality implemented in #88316. Disabled by default.It mitigates #95524
Changelog category (leave one):
Version info
26.2.1.13026.1.2.9,25.12.5.40