-
Type:
Bug
-
Resolution: Gone away
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation pipeline
-
None
-
Not Needed
-
None
Context
- config.chunks collections with 811k documents
- Compass Version 1.21.2
Steps:
- Add $group stage with code:
{ _id: "$shard", count: { $sum: 1 } }
- Turn off sample mode
- See that preview output document includes { "_id" : "shard_5", "count" : 5 }
Expected:
- The document should have had count 626
Theory
- It seems that turning off sample mode on an existing pipeline doesn't apply directly.
Workaround:
- If I start a new pipeline, then turn off sample mode before creating any stages it works.
- is related to
-
COMPASS-4313 Aggregation pipeline applies sample mode with $out
-
- Closed
-