Investigate changes in SERVER-92586: Ensure $sample size is positive

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Done
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • 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.

              Assignee:
              Unassigned
              Reporter:
              Backlog - Core Eng Program Management Team
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: