-
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.
125814: opt: optimize generic query plans with stable expressions r=mgartner a=mgartner #### opttester: allow no-stable-folds for opt directive Prior to this commit, the `no-stable-folds` directive only worked with the "norm", "exprnorm", and "expropt" directives. It now also works with the "opt" directive. This is required for testing generic query plans where plans must be fully optimized without folding stable expressions. Release note: None #### opt: optimize generic query plans with stable expressions The `ConvertSelectWithPlaceholdersToJoin` rule has been renamed to `GenerateParameterizedJoin` and modified to also operate on stable expressions. Stable expressions cannot be folded in generic query plans because their value can only be determined at execution time. By transforming a Select with a stable filter expression into a Join with a Values input, the optimizer can potentially plan a lookup join with similar performance characteristics to a constrained scan that would be planned if the stable expression could be folded. Epic: CRDB-37712 Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
6 changed files
with
453 additions
and
142 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
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.