Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.11.0
-
None
-
ghx-label-3
Description
We round away from zero when rounding decimals:
select round(cast(-5.55 as decimal(10, 5)), 1);
-5.6
However, we round towards positive infinity for doubles.
select round(cast(-5.55 as double), 1); -5.5 select round(cast(5.55 as double), 1); 5.6
This seems inconsistent.
Attachments
Issue Links
- is duplicated by
-
IMPALA-7255 Incorrect result rounding midpoint negative numbers to negative precision
- Resolved