[COMPASS-4312] Aggregation pipeline applies sampling even after disabling sample mode Created: 28/May/20  Updated: 27/Oct/23  Resolved: 28/Oct/22

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Nic Cottrell Assignee: Unassigned
Resolution: Gone away Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to COMPASS-4313 Aggregation pipeline applies sample m... Closed
Documentation Changes: Not Needed

 Description   

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.


 Comments   
Comment by Jessica Sigafoos [ 28/Oct/22 ]

We no longer have a disable sample mode option.

Generated at Wed Feb 07 22:35:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.