You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Su Ralph (JIRA)" <ji...@apache.org> on 2016/10/26 00:55:59 UTC

[jira] [Commented] (CALCITE-1468) Implement DECIMAL data type

    [ https://issues.apache.org/jira/browse/CALCITE-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15606968#comment-15606968 ] 

Su Ralph commented on CALCITE-1468:
-----------------------------------

Is this fit for newbie? what's the estimate fix version(timeline)? 

> 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)