-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
ALL
-
-
QI 2025-02-03, QI 2025-02-17
In the repro provided in the shards section of the explain, the $group fields are not rewritten to reference the bucket-level fields. This is done as a performance optimization.
This issue began in SERVER-93874, but after reviewing the logic I don't see why the rewrite doesn't occur. After investigating I found that on the shards this condition returns false because the _fieldSet in the bucket spec doesn't contain the meta field. This is odd because the unpack bucket stage shows us including the meta field as output.
- related to
-
SERVER-93874 $group on time-series collections can produce rounded results due to bucket control rounding
-
- Closed
-