Repository navigation
Revert "Record the static conditions of a PREWHERE shared with a join runtime filter in the query condition cache" - #131167
Conversation
…qcc-no-parallel" This reverts commit 61a00a8, reversing changes made to ce42026. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… runtime filter in the query condition cache" This reverts commit 64da8a0, reversing changes made to be89302. Conflicts resolved by keeping the later changes in the same lines: `is_query_prewhere` (ClickHouse#130645), the `last_reader_evaluating_defaults` argument (ClickHouse#128452), `readsSameColumns` (ClickHouse#124880), `follows_top_k_filter` (ClickHouse#129882), and the PREWHERE query condition cache write of ClickHouse#115522 in its own form before it merged ClickHouse#122380. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding). Pure-revert check:
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261113-004800 |
|
@groeneai Resolve the merge conflicts. |
…rewhere-attribution # Conflicts: # src/Storages/MergeTree/MergeTreeReadersChain.cpp # src/Storages/MergeTree/MergeTreeSplitPrewhereIntoReadSteps.cpp
# Conflicts: # src/Processors/QueryPlan/Optimizations/optimizePrewhere.cpp # src/Storages/SelectQueryInfo.h
|
🕵 Merged |
|
@groeneai Merge master into this PR |
…rewhere-attribution Conflict in MergeTreeSplitPrewhereIntoReadSteps.cpp with ClickHouse#131511: keep its `crosses_dynamic_filter_boundary` split rule, drop only `is_first_unattributed` added by ClickHouse#122380. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rewhere-attribution Conflict in MergeTreeSplitPrewhereIntoReadSteps.cpp with ClickHouse#132112: keep its `may_throw` / `prewhereConditionCannotThrow` split rule, drop only `is_first_unattributed` added by ClickHouse#122380. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rewhere-attribution Conflict in MergeTreeSplitPrewhereIntoReadSteps.cpp with ClickHouse#129445, which replaced the grouping loop by `appendGroups` / `ConjunctionSplitter` and carried the ClickHouse#122380 query condition cache attribution boundary into it (`ConditionGroup::ends_cache_prefix`, the `cache_prefix` parameter, `attributed_children`). Keep ClickHouse#129445's conjunction and alias splitting, drop only the attribution parts. Without an attribution, master's code already ran with `cache_prefix = 0`, which is the reverted behaviour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged master again in 91ad266 to resolve a conflict with #129445 in |
Reverts #122380
Related: #122380
Related: #125702
Related: #122044
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
As asked on #122380, this reverts it together with its test-only follow-up #125702, which is reverted first so that the second revert has no modify/delete conflict on test 05258. The query condition cache miss of #122044 comes back: when a join runtime filter shares
PREWHEREwith staticWHEREconditions, the cache again records nothing for those conditions.Conflicts were resolved by keeping the later changes in the same lines:
is_query_prewhere(#130645), thelast_reader_evaluating_defaultsargument (#128452),readsSameColumns(#124880),follows_top_k_filter(#129882), and thePREWHEREquery condition cache write of #115522 in its own form before it merged #122380.Validation (debug build): no symbol of #122380 remains. Master's 05258_query_condition_cache_prewhere_attribution fails on this build and passes on master. 507 related stateless tests give the same results on this build and on master.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131167]
Version info
26.12.1.436-master(included in26.12and later)