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

ExpressionAdd in SBE should use doubleDoubleSum built-in when called with more than two operands

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • Query 2020-09-07, Query 2020-09-21

      The doubleDoubleSum VM built-in function uses a special summation algorithm which works better when summing up a series (> 2) of integral values. It should also allow to preserve the existing semantics for this specific scenario.

      We should still use the generic addition instruction for ExpressionAdd with two operands. Also, the existing translation logic for ExpressionAdd assumes it can only be called with two operands, which is not the case and needs to be fixed.

            Assignee:
            milena.ivanova@mongodb.com Milena Ivanova
            Reporter:
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: