Julian Hyde created CALCITE-1468:
------------------------------------

             Summary: Implement DECIMAL data type
                 Key: CALCITE-1468
                 URL: https://issues.apache.org/jira/browse/CALCITE-1468
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to