Add support for percentile and median accumulators in $project stage

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builders
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Slav Babanin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: