Commit 67e7840
authored
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 1bd88cb commit 67e7840
4 files changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | | - | |
| 1078 | + | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | | - | |
| 1086 | + | |
1084 | 1087 | | |
1085 | 1088 | | |
1086 | 1089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6954 | 6954 | | |
6955 | 6955 | | |
6956 | 6956 | | |
| 6957 | + | |
| 6958 | + | |
| 6959 | + | |
| 6960 | + | |
| 6961 | + | |
6957 | 6962 | | |
6958 | 6963 | | |
6959 | 6964 | | |
| |||
0 commit comments