You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "James Fang (JIRA)" <ji...@apache.org> on 2018/10/10 00:44:00 UTC

[jira] [Created] (ASTERIXDB-2460) Sum does not calculate overflow correctly

James Fang created ASTERIXDB-2460:
-------------------------------------

             Summary: 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


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)