Repository navigation
Disable distributed index analysis with projections (wrong results) - #115132
Conversation
|
Workflow [PR], commit [aaffa68] Summary: ✅
AI ReviewSummaryThis PR disables distributed index analysis when the analyzed parts are projection parts, which avoids collapsing multiple parent parts into one remote-analysis entry keyed only by the shared projection-part name. I traced the touched path through both normal projection selection and projection-filtering analysis, checked the current PR discussion and CI summary, and did not find a remaining correctness gap in the changed code. Final VerdictStatus: ✅ Approve LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 6/6 (100.00%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units7 translation units recompiled, 30 s compile time in total, 7 of them have a recent master baseline. |
258d718 to
8b7c707
Compare
Parts are identified by name, but projection parts share the projection's name across all parent parts, so analysis collapsed them into one entry and then filtered out valid parent parts, dropping rows. Skip distributed index analysis for projection parts (analyze locally); proper support needs parent part name + projection name on the wire.
8b7c707 to
aaffa68
Compare
…jections (wrong results)
Backport #115132 to 26.7: Disable distributed index analysis with projections (wrong results)
Backport #115132 to 26.3: Disable distributed index analysis with projections (wrong results)
Backport #115132 to 26.5: Disable distributed index analysis with projections (wrong results)
…s with projections (wrong results)
…s with projections (wrong results)
Backport #115132 to 26.6: Disable distributed index analysis with projections (wrong results)
…s with projections (wrong results)
CTE/AN/QP: distributed index analysis with projections -> wrong (feature now disabled). Effect in the production build a394e92: its upstream test(s) 04891_distributed_index_analysis_projections fail on it and pass on official 26.8.8.8, run on isolated servers (evidence/fix_ci_20260925/upstream_repro/server_triage_PROD263_vs_UP2688.tsv). Upstream patch unchanged, with its test(s): 04891_distributed_index_analysis_projections. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Disable distributed index analysis with projections (wrong results)
Parts are identified by name, but projection parts share the projection's name across all parent parts, so analysis collapsed them into one entry and then filtered out valid parent parts, dropping rows. Skip distributed index analysis for projection parts (analyze locally); proper support needs parent part name + projection name on the wire.
Note, that the problem not only for applied projections:
ClickHouse/src/Processors/QueryPlan/Optimizations/optimizeUseNormalProjection.cpp
Lines 617 to 637 in 7604e8d
But for any tables with usable projections, since we try to filter out parts based on the analysis from projections as well:
ClickHouse/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp
Line 418 in 7604e8d
Workflow [PR]
Sync PR [sync-upstream/pr/115132]
Version info
26.7.4.58,26.6.4.26,26.5.7.64,26.3.20.5