Throw error on overflow for $add with NumberDecimal + Date in the classic aggregation engine

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-67282 removed DoubleDoubleSummation from $add in SBE and also fixed a bug where adding a date and a NumberDecimal would return a "NaN" Date rather than throwing an overflow error like the operator does with all other numeric types. This behavior should be fixed in the classic engine as well. We should add a uassert here that mirrors our check for doubles .

              Assignee:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Davis Haupt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: