[SERVER-14359] Allow $max, $min, $avg calculations in $project. Created: 26/Jun/14  Updated: 25/Jun/15  Resolved: 20/May/15

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Rod Adams Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-9625 Support many accumulators in aggregat... Closed
Related
is related to SERVER-17258 Add $reduce expression operator for r... Closed
Participants:

 Description   

We have $add, $subtract, and other operators which can be used a $project operation, so it makes sense to add other basic operators, such as $max, $min, and $avg. I would expect each of these to take an array.

Yes, these could be constructed with existing operators, but it becomes tedious. In particular, the n-variable max case.



 Comments   
Comment by Charlie Swanson [ 20/May/15 ]

Closing as a duplicate, please track the progress on the linked ticket.

Generated at Thu Feb 08 03:34:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.