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

$multiply in SBE promotes integer to decimal type on overflow

    • Query Execution
    • Fully Compatible
    • ALL
    • v7.0
    • QE 2022-02-07, QE 2022-02-21
    • 35

      Currently, in SBE we promote integer types to decimal on overflow, while in the classical engine we promote to double. There are arguments to support either of the behaviors as well as arguments to never promote. Waiting for a spec (ksuarz@gmail.com) that would describe what should be done on integer overflow in $add, $subtract, $mulitple, $inc, $sum et al.

            Assignee:
            ivan.fefer@mongodb.com Ivan Fefer
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: