Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
QE 2021-10-18
Description
The needsMerge behavior at mongod-side has not been yet implemented. Until it's implemented, we should block $group stage from being pushed down to SBE when needsMerge is requested from the mongos. Otherwise, it may lead to incorrect results for sharded $group, especially for accumulators that need special behavior for finalization steps when needsMerge is requested.
This is just an interim fix until we implement needsMerge behavior, which is done by SERVER-59070.