[JAVA-4094] Add builder support for pick-n accumulators Created: 05/Apr/21  Updated: 08/Jun/22  Resolved: 08/Jun/22

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

Type: New Feature Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Valentin Kavalenka
Resolution: Done Votes: 0
Labels: QP-priority, size-small
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by CSHARP-3529 Support $topN and similar accumulator... Closed
Depends
Documented
Server Compat: 5.2
Quarter: FY23Q2
Backwards Compatibility: Fully Compatible
Documentation Changes: Needed

 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



 Comments   
Comment by Githook User [ 06/Jun/22 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Run `AggregatesFunctionalSpecification.$setWindowFields` against server 5.2+

This is a fix for "Add builders for pick-accumulators / window functions (#954)"
JAVA-4094
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1a53a9a06e1a1545a2f3c5fbf046e76580e2c5e5

Comment by Githook User [ 06/Jun/22 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Add builders for pick-accumulators / window functions (#954)

JAVA-4094
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5ab2a4e55d11f9662e86538dde83f266d4b414ec

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