[SERVER-75673] Allow hashagg stage to take in accumulator initialization expression Created: 04/Apr/23  Updated: 29/Oct/23  Resolved: 05/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Rui Liu Assignee: Rui Liu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QE 2023-04-17
Participants:

 Description   

Currently all of the accumulator initialization is performed as part of the accumulation itself. This is not applicable for $topN/$bottomN, because they can take an "n" parameter which varies between groups. We want to extend the hashagg stage so that it can initialize a group based on an expression.



 Comments   
Comment by Githook User [ 05/Apr/23 ]

Author:

{'name': 'Rui Liu', 'email': 'lriuui0x0@gmail.com', 'username': 'lriuui0x0'}

Message: SERVER-75673 Extend the hashagg stage to allow initialization expression
Branch: master
https://github.com/mongodb/mongo/commit/e7037a0546d5f6c2eb86ad223bc2664e76453e6b

Generated at Thu Feb 08 06:30:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.