Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2460

Sum does not calculate overflow correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FUN - Functions
    • Labels:
      None

      Description

      Overflow is not calculated correctly in the sum function.

      Query:

      array_sum( [ int8("48"), int8("48"), int8("48")]);

      Result:

      -112

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                HussainHT Hussain Towaileb
                Reporter:
                James Fang James Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: