Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
None
-
ALL
-
Query Execution 2021-05-03
Description
Code below is a simplified repro from this fuzzer failure.
It gives PlanExecutor error during aggregation :: caused by :: date overflow in $add error when executed with classic engine and object with invalid date ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ") when executed with SBE.
(function() { |
|
|
db.test.drop();
|
db.test.insertOne({num: NaN});
|
|
|
const results = db.test.aggregate([
|
{
|
"$project" : { |
"a" : { |
"$add" : [ |
ISODate("2019-12-29T03:22:55.159Z"), |
"$num" |
]
|
}
|
}
|
}
|
]).toArray();
|
print(tojson(results));
|
|
|
}());
|
Attachments
Issue Links
- duplicates
-
SERVER-56284 SBE $add with Date and NumberDecimal arguments trips invariant
-
- Closed
-