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.
52755: opt: pull join commutation logic into join_order_builder.go r=DrewKimball a=DrewKimball Previously, inner joins and full joins were commuted by the CommuteJoin rule. This PR brings commutation into the addJoin function of JoinOrderBuilder, so that joins can be commuted at the same time as they are reordered. Note that CommuteLeftJoin remains because commuting a left join requires a change in the type of join operator. Also note that setting ReorderJoinsLimit to 0 now disallows commutation, while setting ReorderJoinsLimit to 1 allows commutation, but no other reordering. Release note: None Co-authored-by: Drew Kimball <[email protected]>
- Loading branch information
Showing
14 changed files
with
951 additions
and
556 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.