[SERVER-68679] Throw error on overflow for $add with NumberDecimal + Date in the classic aggregation engine Created: 09/Aug/22  Updated: 05/Dec/22  Resolved: 09/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Davis Haupt (Inactive) Assignee: Backlog - Query Execution
Resolution: Duplicate Votes: 0
Labels: neweng, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-68544 Make overflow decimal throws exceptio... Closed
Problem/Incident
is caused by SERVER-67282 $add expression should not use Double... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

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 .


Generated at Thu Feb 08 06:11:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.