Skip to content

Commit

Permalink
GODRIVER-2242 Update estimatedDocumentCount test for ADL (mongodb#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjirewis authored and Mohammad Fahim Abrar committed Mar 17, 2022
1 parent 780a849 commit 5a4d792
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
21 changes: 19 additions & 2 deletions data/atlas-data-lake-testing/estimatedDocumentCount.json
Expand Up @@ -15,8 +15,25 @@
{
"command_started_event": {
"command": {
"count": "driverdata"
}
"aggregate": "driverdata",
"pipeline": [
{
"$collStats": {
"count": {}
}
},
{
"$group": {
"_id": 1,
"n": {
"$sum": "$count"
}
}
}
]
},
"command_name": "aggregate",
"database_name": "test"
}
}
]
Expand Down
7 changes: 6 additions & 1 deletion data/atlas-data-lake-testing/estimatedDocumentCount.yml
Expand Up @@ -13,4 +13,9 @@ tests:
-
command_started_event:
command:
count: *collection_name
aggregate: *collection_name
pipeline:
- $collStats: { count: {} }
- $group: { _id: 1, n: { $sum: $count }}
command_name: aggregate
database_name: *database_name

0 comments on commit 5a4d792

Please sign in to comment.