Repository navigation
TopK through multiple ARRAY JOINs - #131004
Conversation
…-array-join-chain
With the re-optimization depth from #128926 the notEmpty filter of the first move goes below the next ARRAY JOIN, so the sort of an inner chain moves again. The case showed the sort between the two ARRAY JOIN steps. Now it shows both above one limited sort with the filter notEmpty(arr2) AND notEmpty(arr).
|
Workflow [PR], commit [ac55c5e] Summary: ✅
AI ReviewSummaryPR #131004 extends bounded sorting pushdown through consecutive Findings
Tests
Final VerdictStatus: |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units7 translation units recompiled, 16 s compile time in total, 7 of them have a recent master baseline. |
…erged filter CI randomizes `query_plan_merge_filters = 0`, which keeps `notEmpty(arr2)` and `notEmpty(arr)` as two `Filter` steps. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=131004&sha=67384091a50519cac9ba831e97c95fe51094126d&name_0=PR #131004 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cherry pick #131004 to 26.10: TopK through multiple ARRAY JOINs
Backport #131004 to 26.10: TopK through multiple ARRAY JOINs
Related: #116550
Related: #128705
Related: #128926
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
ORDER BY ... LIMITover severalARRAY JOINclauses now sorts and limits the rows before all of them, not only before the last one, when the sort key does not use the joined columns.Workflow [PR]
Sync PR [sync-upstream/pr/131004]
Version info
26.11.1.2221-master(included in26.11and later)26.10.13.7