SERVER-21992Backlog

Inconsistent results when grouping by possibly missing values

My database contains the following documents: Note that the second document does not have a type field, it's missing. The aggregation pipeline produces inconsistent results sometimes showing 'type' :null in the id field, and sometimes not. For example, the following aggregation does NOT return the missing type in the key: Results in: However, this aggregation, returns back a 'type' : null, Results in: Note that the only difference was the comment out of the 'col

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Aggregation Framework
Labels
Tags and classification
indexv3query-44-groomingusability