-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Classic $group (and the merging $group on mongos) ignores the collator when comparing and hashing BSON Symbol keys, so Symbols equal under the collation form separate groups.
- Repro, standalone with internalQueryFrameworkControl: "forceClassicEngine": Symbols a and A grouped with collation {{
{locale: "en", strength: 2}
}} return two groups instead of one.
- Cause: Value::compare and Value::hash_combine do not apply the collator to Symbols.
- Found while fixing SERVER-137906.
- related to
-
SERVER-137906 SBE $group spill ignores collation for BSON Symbol group keys
-
- Open
-