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

Till commented on ASTERIXDB-2460:
---------------------------------

If all arguments are integer values the result of sum should be bigint.
If at least one argument is of a floating point type, the result should be 
double.

> Sum does not calculate overflow correctly
> -----------------------------------------
>
>                 Key: ASTERIXDB-2460
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2460
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: FUN - Functions
>            Reporter: James Fang
>            Assignee: Hussain Towaileb
>            Priority: Major
>
> Overflow is not calculated correctly in the sum function.
> Query:
> array_sum( [ int8("48"), int8("48"), int8("48")]);
> Result:
> -112



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to