-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
ALL
-
Query 12 (04/04/16), Query 13 (04/22/16)
SERVER-4507 was implemented and pushed, but has a known issue:
Because of how the index sorts null, missing, and undefined values, a user executing a $group on documents with null/missing/undefined values may get the incorrect number of groups.
To fix this, $group should not stream for the period that input has nullish _id values.
Once this change has gone into master, DocumentSourceGroup::findRelevantInputSort should be changed to not immediately return boost::none, and the associated tests in document_source_test.cpp should be reenabled by removing the #if surrounding the lines that add the tests to the suite.
- depends on
-
SERVER-23099 Always propagate cursor output sort to aggregation.
- Closed
- is related to
-
SERVER-23477 Aggregation's streaming $group should become blocking when it evaluates an array field in the _id
- Closed
- related to
-
SERVER-21992 Inconsistent results when grouping by possibly missing values
- Backlog
-
SERVER-23229 Projection incorrectly returns null value instead of missing field to user if projection is covered
- Backlog
-
SERVER-84466 Complete TODO listed in SERVER-23318
- Backlog