-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.9
-
Component/s: Querying
-
None
-
ALL
-
When using the distinct command targeting an indexed array field, which also happens to be empty, an additional `undefined` value is added to the result.
If there is no index on the field, it's correct - there is no `undefined` value in the result.
- duplicates
-
SERVER-14832 Distinct command result set may include or exclude null/undefined depending on presence of index
- Needs Scheduling