forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32443: opt: Fix panic when hoisting expr with correlated subquery r=andy-kimball a=andy-kimball Fixes cockroachdb#32270. The panic occurs when hoisting an expression that has both a correlated and an uncorrelated subquery. The current code panics when calling Reconstruct on the relational input to the uncorrelated subquery. The fix is to test for relational inputs and skip over them. They are not correlated, and so no hoisting needs to be done within their subtree. Release note (sql change): Fix panic when expression contains both a correlated and uncorrelated subquery. Co-authored-by: Andrew Kimball <[email protected]>
- Loading branch information
Showing
2 changed files
with
77 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