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

Aggregation pipeline applies sampling even after disabling sample mode

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Aggregation pipeline
    • Labels:
      None
    • Not Needed

      Context

      • config.chunks collections with 811k documents
      • Compass Version 1.21.2

      Steps:

      1. Add $group stage with code: 
         {
         _id: "$shard",
         count: {
         $sum: 1
         }
        }
      2. Turn off sample mode
      3. See that preview output document includes { "_id" : "shard_5", "count" : 5 }

      Expected:

      • The document should have had count 626

      Theory

      • It seems that turning off sample mode on an existing pipeline doesn't apply directly.

      Workaround:

      • If I start a new pipeline, then turn off sample mode before creating any stages it works.

            Assignee:
            Unassigned Unassigned
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: