-
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.
40657: exec: Fix NULL expression handling in CASE and AND operators r=rohany a=rohany This change fixes the CASE and AND operators when nulls were used as expressions, which caused different errors than nulls existing as data within the batches. Additionally, this change increases the safety of the vectorized engine by disallowing the engine to plan constNullOperators without knowing the "type" of the null to avoid having the same panic arise. To get around this, when the "type" of the null is known, a constNullOperator with a known type can be planned. This is a temporary fix for the release. To be properly fixed, datum nulls need to be aware of their type post typechecking, instead of being "unknown". Release justification: This PR fixes known panics within the vectorized engine. Fixes #40526. Release note: None Co-authored-by: Rohan Yadav <rohany@cockroachlabs.com>
- Loading branch information
Showing
4 changed files
with
89 additions
and
13 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