-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
ALL
Running this pipeline:
db.coll.aggregate({$project: {_id: 0, num: {$max: [NumberDecimal("Infinity"), Infinity]}, numType: {$type: "$num"}}}
returns
{ "num" : NumberDecimal("Infinity"), "numType" : "double" }
This should be returning "decimal" as the type instead.