Repository navigation
Estimate hypothetical projections with WHERE in EXPLAIN WHATIF - #125792
Conversation
|
Workflow [PR], commit [22ecc1b] Summary: ✅
AI ReviewSummaryThis PR extends Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units12 translation units recompiled, 60 s compile time in total, 10 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.08 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
…of each insert-sized batch of the scan
…or projections with WHERE
…te mask, count base-table rows, and give no estimate from an empty sample
80afff0 to
2540f6d
Compare
…ild-normal-projection-stale The only conflict was in WhatIfProjectionEstimator.cpp with ClickHouse#125792, which reads the delete mask itself and drops the deleted rows through ProjectionDescription::calculate. Take its version and keep only the check that reads `_row_exists` once when the projection stores it: reading it twice aborts the scan (05402, last case). Drop the sampled-scan decline of 05241: ClickHouse#125792 estimates sampled parts with deleted rows per granule. In 05402 a part with every row deleted is now not_applicable. 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):
EXPLAIN WHATIFnow estimates hypothetical projections with aWHEREclause.Stack created with GitHub Stacks CLI • Give Feedback 💬
Workflow [PR]
Sync PR [sync-upstream/pr/125792]
Version info
26.11.1.425-master(included in26.11and later)