The current behaviors of double and decimal are inconsistent:
- Date + overflowDouble/nanDouble => overflow exception
- Date + overflowDecimal/nanDecimal => nanDate
We can have decimal to throw exception as well for overflow: code link
(we will not backport this to 6.0 or earlier)
(this ticket is for classic engine, sbe change will be included in SERVER-67282)
- is depended on by
-
SERVER-68679 Throw error on overflow for $add with NumberDecimal + Date in the classic aggregation engine
- Closed
- is related to
-
SERVER-67282 $add expression should not use DoubleDoubleSummation in SBE
- Closed