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

liyang commented on KYLIN-2744:
-------------------------------

I know the history of sum double as decimal. Sum of double incurs small errors 
like 1+2=2.99999. While this error should be perfectly fine, it worries pilot 
users in early days of Kylin. To make sure the sum result is super precise, it 
is then decided to use decimal to sum floats and doubles.

I think we could return double for sum double by default, but returning decimal 
should still be available. At least for backward compatibility.

> Should return correct type for SUM measure in web
> -------------------------------------------------
>
>                 Key: KYLIN-2744
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2744
>             Project: Kylin
>          Issue Type: Bug
>          Components: Web 
>    Affects Versions: v2.0.0
>            Reporter: kangkaisen
>            Assignee: kangkaisen
>         Attachments: KYLIN-2744.patch
>
>
> Currently, Kylin return decimal type for the  sum measure of double type, 
> which will result in wrong result. So, We should return correct type for SUM 
> measure in web.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to