Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
Impala 2.11.0
-
None
-
ghx-label-2
Description
The following query correctly returns an error when Decimal v2 is enabled:
select cast(123 as decimal(2, 0));
ERROR: UDF ERROR: Decimal expression overflowed
However, this query incorrectly returns a NULL:
select cast("123" as decimal(2, 0)) +-----------------------------+ | cast('123' as decimal(2,0)) | +-----------------------------+ | NULL | +-----------------------------+