-
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.
colbuilder: pre-evaluate casts of constants in projection exprs
During the planning of the projection expressions we have certain optimized operators if either left or right expressions are constants. Previously, we would simply check whether expression is a datum to see whether it is a constant. Another simple case that this commit adds is if we have a cast expression of a datum - this commit adds pre-evaluation of such expressions allowing us to plan optimized operators more often. Notably, this handles a case of a cast from NULL which the optimizer creates in order to propagate the type of NULL. Release note: None
- Loading branch information
1 parent
e29d694
commit d09246f
Showing
2 changed files
with
41 additions
and
0 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