Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8316

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

    • Type: Icon: Investigation Investigation
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • 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.

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

              Created:
              Updated: