...
BugZero found this defect 4 days ago.
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.
JIRAUSER1269543 commented on Fri, 10 Jan 2025 23:13:32 +0000: This was a mis-triage - we do maintain the correct type for NumberDecimal("Infinity") after all.