$multiply in SBE promotes integer to decimal type on overflow

XMLWordPrintableJSON

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

      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
              Reporter:
              Irina Yatsenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: