[SERVER-57899] Make it more convenient to switch on type of AccumulatorStatement Created: 21/Jun/21  Updated: 29/Oct/23  Resolved: 30/Jun/21

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

Type: Task Priority: Major - P3
Reporter: Ian Boros Assignee: Andrii Dobroshynski (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-57547 Add SBE builder for $group accumulators Closed
Backwards Compatibility: Fully Compatible
Sprint: Query Execution 2021-06-28, Query Execution 2021-07-12
Participants:

 Description   

At the moment there is no easy way to switch on the type of an AccumulationStatement. This is because the information about the true/runtime "type" of the accumulator is hidden inside a factory function.

Before creating an SBE stage builder for accumulators we should make it convenient to do a visitor-like pattern on accumulators. We'll need to talk to QO to figure out the best way to do this.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 30/Jun/21 ]

Author:

{'name': 'Andrii Dobroshynski', 'email': 'andrii.dobroshynski@mongodb.com', 'username': 'dobroshynski'}

Message: SERVER-57899 Expose accumulator name to make it more convenient to switch on type of AccumulatorStatement
Branch: master
https://github.com/mongodb/mongo/commit/1375ed058fd9737100fe00f845a54fe95cde79d2

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