Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5025

Add support for percentile and median accumulators in $project stage

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builders
    • None

      Percentile and median accumulators in projection: Syntax document

      Example: 

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

       
       

            Assignee:
            Unassigned Unassigned
            Reporter:
            slav.babanin@mongodb.com Slav Babanin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: