-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
ALL
-
55
db.coll.drop();
db.coll.insert({a: NumberInt(1)});
db.coll.aggregate([{$addFields: {b: {$toDate: "$a"}}}]);
Error:
PlanExecutor error during aggregation :: caused by :: Unsupported conversion from int to date in $convert with no onError value
Note it works if we change NumberInt to long or double.