-
Type: Investigation
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Developer Tools
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