-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Query Execution 2021-07-12, Query Execution 2021-07-26
Unlike agg expressions, which are transformed from Expression* to an SBE PlanStage tree, $group accumulators will need to transformed from from an AccumulationStatement (or related type) into two sets of SBE expressions: one set for "accumulation" and another for "finalization."
For example, $avg will be implemented with two accumulators: one for summing all of the elements and another for counting. The "finalization" expression will divide the sum by the count.
$push on the other hand will be implemented with just an accumulator, which pushes to an array (there is no need for "finalizing").
- depends on
-
SERVER-57899 Make it more convenient to switch on type of AccumulatorStatement
- Closed
- is depended on by
-
SERVER-57549 Implement translation of $accumulator to SBE
- Backlog
-
SERVER-57550 Implement translation of $addToSet
- Closed
-
SERVER-57551 Implement translation of $first, $last, $min, $max accumulators to SBE
- Closed
-
SERVER-57552 Implement translation of $stdDevPop and $stdDevSamp accumulators to SBE
- Closed
-
SERVER-57553 Implement translation of $sum accumulator to SBE
- Closed
-
SERVER-58070 Support accumulator $topN in SBE
- Closed