SERVER-138550Backlog

Classic $group ignores collation for BSON Symbol group keys

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.

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

No components specified.

Labels
Tags and classification
qe-bf-triage-week