Commit c0a65a4
committed
Planner: use
In order to compute the `set_outer_from_schema` argument we currently
use `DFSchema::join`. When we combine the current outer FROM schema with
the current outer query schema columns from the latter should override
columns from the first, so the correct way is to use `DFSchema::merge`.
To witness the fix, note that the query in the fixed test case isn't
planned as expected without the accompanying changes.DFSchema::merge in create_relation_subquery
1 parent 06c5e7f commit c0a65a4
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3219 | 3219 | | |
3220 | 3220 | | |
3221 | 3221 | | |
3222 | | - | |
| 3222 | + | |
3223 | 3223 | | |
3224 | 3224 | | |
3225 | 3225 | | |
| |||
0 commit comments