Details
-
Bug
-
Resolution: Gone away
-
Major - P3
-
None
-
None
-
Not Needed
Description
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.
Attachments
Issue Links
- is related to
-
COMPASS-4313 Aggregation pipeline applies sample mode with $out
-
- Closed
-