forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add support for joinReader to be the first join in paired joins
This is to allow lookup joins to be used for left outer/semi/anti joins with non-covering indexes. Currently only semi joins for this case can use the index (by doing two inner joins and a DistinctOn) Paired joins with a non-covering index will be used as follows: - Left outer join: will become a pair of left outer lookup joins. - Left anti join: will be a left outer lookup join followed by a left anti lookup join. - Left semi join: will be an inner lookup join followed by a left semi lookup join. This PR does not contain the optimizer changes. Informs cockroachdb#55452 Release note: None
- Loading branch information
1 parent
32cd89c
commit 3db7d99
Showing
10 changed files
with
633 additions
and
413 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.