-
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.
tree: don't resolve expressions with wildcard types
There are various wildcard types that are used during type-checking, but which are not valid during execution. Previously, we only checked for `types.Any` in several places, but there are other wildcard types like `types.AnyEnum` with similar properties. This could lead to an internal panic during execution when this invalid type was resolved. This patch adds a new method `types.T.IsWildcardType()` that checks for all wildcard types, to be used during type-checking. Fixes #83496 Release note (bug fix): Fixed a bug that has existed since before v22.2 which could cause an internal error during distributed execution for an expression like `CASE` that requires its inputs to be the same type with all `NULL` inputs.
- Loading branch information
1 parent
673bde5
commit 9f7a25a
Showing
3 changed files
with
30 additions
and
5 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