[JAVA-5025] Add support for percentile and median accumulators in $project stage Created: 15/Jun/23  Updated: 20/Jun/23

Status: Backlog
Project: Java Driver
Component/s: Builders
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Unknown
Reporter: Slav Babanin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DRIVERS-1611 Investigate changes in PM-1835: Appro... Closed
Related
is related to JAVA-3860 Median and Percentile Accumulators Closed

 Description   

Percentile and median accumulators in projection: Syntax document

Example: 

db.example.aggregate([
  {
    $project: {
      p90: {
        $percentile: {
          input: ["$a", "$t"],
          p: [0.1],
          method: "approximate"
        }
      }
    }
  }
]) 

 
 


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