-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`PlanToStreamColMap` was being incorrectly populated for the right side of the hash and merge joins in the case when there is at least one "internal" column coming from the left side that is not needed in the output (e.g. such columns might be needed during stream merges). This would result in propagating the wrong columns from the right side into the output of the join. I think this could only occur when planning merge joins because the hash joins have an empty merge ordering (I'm unsure about the case when the query has a sort on top of the hash join whether all columns from ORDER BY are included in the "output" columns of the join). Release note (bug fix): CockroachDB previously could crash on some queries with merge joins, and this has now been fixed.
- Loading branch information
1 parent
b42f9f1
commit f517c55
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters