Commit 818170f
Fix non-equi join error with equi + 2 inequality conditions (#7642)
* Fix non-equi join error with equi + 2 inequality conditions (#7641)
When rightcols contains duplicates (same x column in multiple non-equi
conditions), chmatchdup remaps them into the expanded result namespace.
This overwrote rightcols, causing downstream code (e.g. .shallow(x, rightcols)
in .join_result_key) to reference columns beyond ncol(x).
Introduce ansrightcols for the remapped indices and keep rightcols as
original column indices into x. Only icolsAns needs the remapped values;
all other uses (xcols, names_x[rightcols], .join_result_key) need the
original x-relative indices.
Closes #7641
* Add contributor credit in DESCRIPTION and NEWS
Per reviewer request: thank reporter in NEWS.md and add
Tarun Thammisetty as contributor to DESCRIPTION.1 parent edcab12 commit 818170f
4 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
| 704 | + | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
707 | 710 | | |
708 | 711 | | |
709 | | - | |
| 712 | + | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7153 | 7153 | | |
7154 | 7154 | | |
7155 | 7155 | | |
| 7156 | + | |
| 7157 | + | |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
7156 | 7161 | | |
7157 | 7162 | | |
7158 | 7163 | | |
| |||
0 commit comments