Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.14.0
-
None
-
None
Description
If I cast String and Decimal literals as Decimal and literalĀ precision is more than I casting to,
I see different results for the same literal data in String and Decimal formats
SELECT cast('1234.5678' as DECIMAL(2, 2));
+----------+ | EXPR$0 | +----------+ | 1200.00 | +----------+
SELECT cast(1234.5678 as DECIMAL(2, 2));
+---------+ | EXPR$0 | +---------+ | 0.12 | +---------+
CAST result forĀ one number in String and Decimal formats should be the same.
Attachments
Issue Links
- relates to
-
DRILL-6472 Drill allows to use decimal zero precision in CAST function for CTAS
- Closed