You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/05/18 21:35:02 UTC

[jira] [Resolved] (CALCITE-735) Primitive.DOUBLE.min should be large and negative

     [ https://issues.apache.org/jira/browse/CALCITE-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-735.
---------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: next)
                   1.3.0-incubating

Fixed in http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/b812e045.

> Primitive.DOUBLE.min should be large and negative
> -------------------------------------------------
>
>                 Key: CALCITE-735
>                 URL: https://issues.apache.org/jira/browse/CALCITE-735
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: liyang
>            Assignee: Julian Hyde
>             Fix For: 1.3.0-incubating
>
>
> Kylin user reported max() of negative doubles does not return correct result. https://issues.apache.org/jira/browse/KYLIN-751
> The root cause is the initial value of calcite aggregator is not a negative double. In Primitive.java, it took Double.MIN_VALUE as the smallest double value but that actually is not a negative number according to javadoc.



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