forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colexec: fix projections with constant NULL values
This commit fixes a bug in the vectorized engine that caused incorrect results when projections operated on constant NULL values. The `proj_const_right_ops` operators do not correctly handle NULL inputs. So, we avoid these code paths when operator does not operate on NULL values and the RHS of an operator is NULL by simply projecting NULLs. Fixes cockroachdb#127814 Release note (bug fix): A bug has been fixed that could cause incorrect evaluation of scalar expressions involving `NULL` values in rare cases.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 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