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

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

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: