Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When the HIVE-2693 gets committed, users are going to see this behavior:
hive> select cast(3.14 as decimal) from decimal_3 limit 1;
3.140000000000000124344978758017532527446746826171875
That's intuitively incorrect but is the case because 3.14 (double) is being converted to BigDecimal because of which there is a precision mismatch.
We should consider creating a new literal for expressing constants of Decimal type as Gunther suggested in HIVE-2693.
Attachments
Attachments
Issue Links
- is related to
-
HIVE-2693 Add DECIMAL data type
- Closed