Repository navigation
Enable query_plan_lower_array_join_function by default - #117882
Conversation
|
Workflow [PR], commit [7cd8e0f] Summary: ✅
AI ReviewSummaryThis PR flips Findings
Tests
Final VerdictStatus:
LLVM Coverage ReportMeasured on commit 7cd8e0f.
Changed lines: Changed C/C++ lines covered: 13/13 (100.00%) · Uncovered code |
…ggling the setting
|
Required: #118582 |
…array-join-function
…nction' into yarik/enable-lower-array-join-function
|
📊 Cloud Performance Report ✅ AI verdict: This PR only changes the default of query_plan_lower_array_join_function to true, plus test and reference updates. That setting only changes queries that call the arrayJoin() function, and no ClickBench or TPC-H query does. Q23's -39.3% improvement is therefore downgraded to not sure. Its master baseline was very noisy, and the query was already trending on master. Q30's -11.8% stays suppressed because it falls inside master's normal variance, which fits this PR having no effect on it. To see this PR's real effect, look at the array_join_function_lowering perf test, not these benchmarks. clickbenchFlagged queries (1 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_official🟢 No significant changes Debug info
|
| {"enable_sharding_aggregator", false, false, "Obsolete setting, the sharded aggregator has been removed in favor of the adaptive aggregator (`enable_adaptive_aggregator`)."}, | ||
| {"allow_preliminary_distinct_abandoning", false, true, "New setting that lets the preliminary `DISTINCT` give up deduplicating mostly-unique input, because the final `DISTINCT` deduplicates its output again."}, | ||
| {"query_plan_fuse_filter_into_array_join", false, true, "New optimization to fuse a filter on ARRAY JOINed columns into the ARRAY JOIN step, enabled by default."}, | ||
| {"query_plan_lower_array_join_function", false, true, "New optimization to lower an arrayJoin function into a real ARRAY JOIN step, enabled by default."}, |
There was a problem hiding this comment.
This default flip relies on the SettingsChangesHistory row here as the only rollback path for older compatibility values, but the PR adds no focused test for that boundary. 03999_stateless_settings_history.sh only checks that the setting is documented and that the current default matches the latest recorded new_value; it will still pass if this entry is registered under the wrong version. Please add a small stateless test that compatibility = '26.8' keeps the legacy non-lowered plan while 26.9 (or empty compatibility) produces the lowered ArrayJoin step.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes36 object files changed (+174.63 KiB total), 0 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units7 translation units recompiled, 15 s compile time in total, 7 of them have a recent master baseline. |
|
Required: #119186 |
…array-join-function
…array-join-function
…array-join-function
…array-join-function Resolve the conflict with the move of the settings changes history into the setting declarations (ee6b44f): the history records this PR added to `SettingsChangesHistory.cpp` now live as trailing arguments of the `DECLARE` of each setting. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Related: #112241
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
arrayJoinfunction is now planned as anARRAY JOINstep by default (settingquery_plan_lower_array_join_function). The expansion streams through the pipeline instead of being materialized inside the projection, filters on the joined elements are applied before the rows are multiplied, and queries with severalarrayJoincalls no longer build the whole cross product in memory. Feature itself: #116910Workflow [PR]
Sync PR [sync-upstream/pr/117882]
Version info
26.10.1.919-master(included in26.10and later)