Repository navigation
Fix ANY RIGHT JOIN - #102893
Fix ANY RIGHT JOIN#102893
Conversation
|
Workflow [PR], commit [5f76cd9] Summary: ✅ AI ReviewSummaryThe PR fixes ClickHouse Rules
Final VerdictStatus: ✅ Approve |
The `FULL JOIN: multi key` query used `ORDER BY coalesce(l.k1, r.k1), coalesce(l.k2, r.k2)`, but with `join_use_nulls=0` unmatched right rows get default `l.k1=0, l.k2=''` instead of NULL. Both unmatched right rows collapsed to sort key `(0, '')`, so output order varied by plan. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102893&sha=79e6b5bd06032c3b82a3fd2251005e9a733b5447&name_0=PR&name_1=Stateless+tests+%28amd_debug%2C+distributed+plan%2C+s3+storage%2C+parallel%29 PR: #102893 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-authored-by: Nikita Taranov <[email protected]>
LLVM Coverage Report
Changed lines: 100.00% (3/3) · Uncovered code |
|
Hi — this PR may need backporting to Affected code: Why: Wrong-results bug in ANY RIGHT JOIN with OR disjuncts. The buggy If this should be backported, consider adding |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed possible incorrect result of
ANY RIGHT JOIN.Closes: #102208
Version info
26.5.1.141