-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
Fully Compatible
-
ALL
-
v8.1, v8.0
-
-
QI 2025-02-03, QI 2025-02-17
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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.
- is related to
-
SERVER-102736 Clearly separate concerns of BucketSpec and BucketUnpacker
-
- Backlog
-
- related to
-
SERVER-93874 $group on time-series collections can produce rounded results due to bucket control rounding
-
- Closed
-