Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 3.0
-
None
-
ghx-label-2
Description
The following query returns an error:
select cast(2 as decimal(38,37)) in (cast(3 as decimal(38,1)), cast(2 as double))
However, this query succeeds and returns true:
select cast(2 as decimal(38,37)) in (cast(2 as double), cast(3 as decimal(38,1)))
The only difference is that the elements in the list are in a different order. This behavior seems strange. Perhaps we should sort the elements before analyzing?