Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50445

Return the value as double when NumberLong subtraction overflows in ExpressionSubtract

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2, v4.0, v3.6
    • Sprint:
      Query 2020-10-05, Query 2020-10-19, Query 2020-11-02, Query 2020-11-16
    • Linked BF Score:
      14

      Description

      The ExpressionSubtract does subtract operation on two long long data type. This can cause an overflow with large numbers. The right way to do this is to use the DoubleDoubleSummation helper that we use while adding number in ExpressionSum.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arun.banala Arun Banala
              Reporter:
              arun.banala Arun Banala
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: