-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query 2018-04-23
> db.avgtest.drop() true > db.avgtest.insert({nums: [NumberLong("18014398509481984"), NumberLong(1), NumberLong("-18014398509481984"),NumberLong(-1)]}) > db.avgtest.aggregate({$unwind:'$nums'}, {$group: {_id:1, avg:{$avg:'$nums'}}}) { "result" : [ { "_id" : 1, "avg" : -0.25 } ], "ok" : 1 }
- duplicates
-
SERVER-19735 Add aggregation support for experimental decimal data type
- Closed