Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
Description
The method relies on RexUtil.predicateConstants which in turn calls RexUtil.canAssignFrom. RexUtil.canAssignFrom is skipping any check on precision and scale. I observed the error in Hive when two VARCHAR types with different precision were given to the method, which was resulting on considering the result of the narrowing cast as the value of the reference. This lead to incorrect results.
Attachments
Issue Links
- is related to
-
HIVE-23100 Create RexNode factory and use it in CalcitePlanner
- Closed
- links to