-
Type:
Investigation
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Original Downstream Change Summary
Using the `$sample` aggregation stage with a `$size` value of `0` is now disallowed.
Description of Linked Ticket
Currently our docs say $sample accepts positive integers:
https://www.mongodb.com/docs/manual/reference/operator/aggregation/sample/#mongodb-pipeline-pipe.-sample
But we can actually run a pipeline with size: 0.
- depends on
-
SERVER-92586 Ensure $sample size is positive
-
- Closed
-