-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
62924: opt: add FoldFunctionWithNullArg normalization rule r=mgartner a=mgartner This commit adds the `FoldFunctionWithNullArg` normalization rule which folds a function that does not allow Null arguments to Null when one of the arguments is Null. See the documentation for the new rule for more details. Release note (performance improvement): The optimizer now folds functions to `NULL` when the function does not allow `NULL` arguments and one of the arguments is a `NULL` constant. As a result, more efficient query plans will be produced for queries with these types of function calls. Co-authored-by: Marcus Gartner <marcus@cockroachlabs.com>
- Loading branch information
Showing
6 changed files
with
174 additions
and
28 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
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