-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IllegalArgumentException in RelationPlanner
in RelationPlanner, when we process values node, we would add coercions for type only coercion expression. This could change the expression, which does not exist in the analysis. For Enum literals, we want to rewrite the dereference to enum literal. Previously this is done after the coercion rewrite. Thus if the original expression has type only coercions, we could get IllegalArgumentException when trying to get the type of the node. Moving the dereference to enum rewrite before the coercion should solve this problem.
- Loading branch information
Showing
2 changed files
with
7 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