Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Implement the DECIMAL data type, and test for all built-in operators.
Do it using shifted integer values (or long, or short, depending on the required precision). For example, to represent 1234.56 as a DECIMAL(10, 2) we would use a 123456L (a long value because signed 10^10 requires 34.2 bits) and divide by 100 (2^10) on the way out.
In SqlOperatorBaseTest, convert public static final boolean DECIMAL = false to true, and fix the 9 tests where that constant is used.
Attachments
Issue Links
- relates to
-
CALCITE-1467 SqlFunctions power
- Open
-
CALCITE-1908 Mod function got exception in MOD(34.5,3), MOD(19,6.7) situation.
- Open