fix(cubesql): Keep distinct aliases for same-named columns across join sides#11197
Conversation
|
Claude finished @MazterQyou's task in 1m 4s —— View job Code ReviewVerdict: LGTM. The fix correctly separates dedup identity ("has this exact original column already been processed?") from qualifier resolution ("plans above may look this up via Details — 0 high, 0 medium, 1 low (nit)Correctness
Testing
Nit (low)
Minor observations
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11197 +/- ##
===========================================
+ Coverage 59.33% 79.33% +20.00%
===========================================
Files 215 472 +257
Lines 17446 96982 +79536
Branches 3539 3539
===========================================
+ Hits 10351 76944 +66593
- Misses 6589 19532 +12943
Partials 506 506
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
fae8e76 to
4386796
Compare
|
Claude finished @MazterQyou's task in 1m 21s —— View job Code ReviewVerdict: LGTM. Targeted fix for a real bug; the invariant "from-side owns the Details — 0 high, 1 medium, 1 lowCorrectness
Medium — order-of-insertion caveat
Low — comment/nit
Testing
|
…n sides Signed-off-by: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com>
4386796 to
b72f576
Compare
|
Claude finished @MazterQyou's task in 42s —— View job Code ReviewVerdict: LGTM. The previous medium-severity note about implicit ordering has been addressed inline — the new Details — 0 high, 0 medium, 0 lowCorrectness
Testing
Documentation
|
Check List
Description of Changes Made
This PR fixes column alias remapping in SQL push down so that when both sides of a grouped join subquery project columns with the same name, the from-side column keeps its own alias instead of being clobbered by the joined side's remapping: previously a query like
COALESCE(m1.name, m2.name)over aLEFT JOINrendered both references as the right-side column, producingNULLs for unmatched left rows.