Repository navigation
Replace a dropped always-true filter with an expression - #124056
Conversation
|
Workflow [PR], commit [a94c52c] Summary: ✅
AI ReviewSummaryThis PR adds a first-pass rewrite that turns constant-true Missing context / blind spots
Final Verdict✅ No blocking issues found. |
|
📊 Cloud Performance Report ✅ AI verdict: This PR adds a query-plan pass that replaces a filter step with an expression step when its condition has folded to a constant true and the filter column is unused, so such a filter no longer blocks join reordering. None of the four flagged improvements can be attributed to it: clickbench Q33 (-12.9%) and Q34 (-13.7%) and TPC-H Q1 (-20.0%) are single-table aggregations with no constant-true filter. TPC-H Q7 (-25.9%) is a multi-way join, but its predicates are real column comparisons that do not fold to true. All four are therefore downgraded to not sure, because they share a similar CPU drop and a noisy history, which points to a build or environment difference rather than this change. clickbenchFlagged queries (2 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_officialFlagged queries (2 of 22)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units114 translation units recompiled, 1013 s compile time in total, 114 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.94 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
| {tryPushBucketTopKIntoAggregation, "aggregationBucketTopK", &QueryPlanOptimizationSettings::aggregation_bucket_top_k}, | ||
| {trySplitFilter, "splitFilter", &QueryPlanOptimizationSettings::split_filter}, | ||
| {tryMergeExpressions, "mergeExpressions", &QueryPlanOptimizationSettings::merge_expressions}, | ||
| {tryReplaceAlwaysTrueFilter, "replaceAlwaysTrueFilter", &QueryPlanOptimizationSettings::optimize_plan}, |
There was a problem hiding this comment.
I wonder if this should be behind a new setting which is always useful to have.
Follow-up to #105987
The (almost) fix for regression from #105987. No release contains #105987 yet
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Replace a
WHEREfilter that is always true with an expression, so join reordering sees all joined tables as one graph.Workflow [PR]
Sync PR [sync-upstream/pr/124056]
Version info
26.10.1.2491-master(included in26.10and later)