Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Planner: use
DFSchema::merge
in create_relation_subquery
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.
- Loading branch information