Ensure $sample size is positive

XMLWordPrintableJSON

    • Query Execution
    • Minor Change
    • QE 2024-08-19, QE 2024-09-02, QE 2024-09-16, QE 2024-09-30
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Jan Steemann
              Reporter:
              Ivan Fefer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: