Repository navigation
Commit 2ddd78a
committed
fix: list a nested USING or NATURAL key once in a star
When a USING or NATURAL key merged again a key an inner join had merged,
the new key took the outer join's range of sources only, so a bare star
still placed the inner key's own sources' column: SELECT * FROM a JOIN
(b JOIN c USING (k)) USING (k) listed k twice, as did its RIGHT JOIN
form, a NATURAL JOIN (b NATURAL JOIN c), and a JOIN b JOIN c USING (k)
USING (k).
The merged key now covers the union of both ranges. DuckDB cases cover
the nested USING, RIGHT and NATURAL forms, and the same key merged in
two comma groups.1 parent 9db4571 commit 2ddd78a
2 files changed
Lines changed: 41 additions & 3 deletions
File tree
- crates/sqlquack-semantics/src
- duckdb/profile/tests
- lineage/_helpers/tracing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
737 | | - | |
| 736 | + | |
738 | 737 | | |
739 | 738 | | |
740 | 739 | | |
| |||
752 | 751 | | |
753 | 752 | | |
754 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
755 | 789 | | |
756 | 790 | | |
757 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
| |||
0 commit comments