-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query Optimization
-
Fully Compatible
I would like to be able to push all elements of an array field into a new field. So, in a $group, I could do a $push or $addToSet of a field that is an array field and the resulting field would be an array of the elements instead of an array of arrays.
Seems like the $each operator in update is the solution if added to aggregations.
- is depended on by
-
COMPASS-8544 Investigate changes in SERVER-16284: Allow for $pushall / $push with $each to allow pushing all elements of array in $group
- Needs Triage
-
TOOLS-3716 Investigate changes in SERVER-16284: Allow for $pushall / $push with $each to allow pushing all elements of array in $group
- Needs Triage
- is duplicated by
-
SERVER-23839 Aggregation accumulators does not allow the new "direct" array notation
- Closed
-
SERVER-14340 Option for $addToSet to work on array members
- Closed
-
SERVER-27484 allow $setUnion in $group
- Closed
- is related to
-
SERVER-97362 $bucketAuto $concatArrays does not preserve order
- Closed
-
SERVER-92388 [SBE] Implement $setUnion group accumulator in SBE
- Closed
-
SERVER-94470 [SBE] Implement $concatArrays group accumulator in SBE
- Closed
-
SERVER-94575 Enable featureFlagArrayAccumulators
- Closed
-
SERVER-94759 [SBE] Implement $setUnion $setWindowFields accumulator in SBE
- Closed
-
SERVER-94760 [SBE] Implement $concatArrays $setWindowFields accumulator in SBE
- Closed
-
SERVER-97514 Remove featureFlagArrayAccumulators
- Needs Scheduling
- related to
-
SERVER-44174 $push and $addToSet should restrict memory usage
- Closed
-
SERVER-97355 Add $concatArrays/$setUnion accumulators and window functions to stable API
- Open
-
SERVER-97514 Remove featureFlagArrayAccumulators
- Needs Scheduling
-
SERVER-29339 allow using $reduce expression as accumulator in $group
- Backlog