[DRIVERS-1623] Exact top-n accumulator Created: 23/Mar/21  Updated: 27/May/22  Resolved: 05/Apr/21

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Epic Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Driver Changes: Needed
Server Compat: 5.2
Upstream Changes Summary:

Here is the list of accumulators that this project implemented:

  • $firstN
  • $lastN
  • $minN
  • $maxN
  • $top
  • $topN
  • $bottom
  • $bottomN

For specific on each accumulator, please refer to the scope doc.


 Description   
Downstream Change Summary

Please see the scope doc and let Query know if any questions

Description of Linked Ticket

Epic Summary

Summary

Add a $top accumulator that returns an array of expressions evaluated for top n documents according to a given sort order

Motivation

One common analytical task is to find the top or bottom n elements in each cohort. For example, we are interested in the 10 best salespeople for each region based on their individual sales, or in the 5 slowest queries issued by a given tenant on each day. This is a generalization of finding the best or worst element.

Cast of Characters

  • Product Owner: Katya Kamenieva
  • Project Lead: TBD
  • Program Manager: Craig Homa
  • Drivers Contact: TBD

Documentation

Scope Document
Technical Design Document
Product Description


Generated at Thu Feb 08 08:23:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.