Skip to content

Commit 20ac04a

Browse files
benjirewisBenjamin Rewis
authored and
Benjamin Rewis
committed
GODRIVER-2242 Update estimatedDocumentCount test for ADL (#821)
1 parent 1159598 commit 20ac04a

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

data/atlas-data-lake-testing/estimatedDocumentCount.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,25 @@
1515
{
1616
"command_started_event": {
1717
"command": {
18-
"count": "driverdata"
19-
}
18+
"aggregate": "driverdata",
19+
"pipeline": [
20+
{
21+
"$collStats": {
22+
"count": {}
23+
}
24+
},
25+
{
26+
"$group": {
27+
"_id": 1,
28+
"n": {
29+
"$sum": "$count"
30+
}
31+
}
32+
}
33+
]
34+
},
35+
"command_name": "aggregate",
36+
"database_name": "test"
2037
}
2138
}
2239
]

data/atlas-data-lake-testing/estimatedDocumentCount.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ tests:
1313
-
1414
command_started_event:
1515
command:
16-
count: *collection_name
16+
aggregate: *collection_name
17+
pipeline:
18+
- $collStats: { count: {} }
19+
- $group: { _id: 1, n: { $sum: $count }}
20+
command_name: aggregate
21+
database_name: *database_name

0 commit comments

Comments
 (0)