Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-92586

Ensure $sample size is positive

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

      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@mongodb.com Jan Steemann
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: