Skip to content

Commit e34e979

Browse files
committed
Aggregration corrections
Documentation corrections for lookup its available for all in 3.2 Removed duplicated test assertion
1 parent 0db6ad0 commit e34e979

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

docs/reference/content/builders/aggregation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ limit(10)
103103

104104
### Lookup
105105

106-
Starting in 3.2, MongoDB Enterprise provides a new [`$lookup`]({{< docsref "reference/operator/aggregation/lookup/" >}}) pipeline stage
106+
Starting in 3.2, MongoDB provides a new [`$lookup`]({{< docsref "reference/operator/aggregation/lookup/" >}}) pipeline stage
107107
that performs a left outer join with another collection to filter in documents from the joined collection for processing.
108108

109109
This example performs a left outer join on the `fromCollection` collection, joining the `local` field to the `from` field and outputted in

driver-core/src/main/com/mongodb/client/model/Aggregates.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ public static Bson limit(final int limit) {
9797
/**
9898
* Creates a $lookup pipeline stage for the specified filter
9999
*
100-
* <p>Note: Available in MongoDB Enterprise only.</p>
101-
*
102100
* @param from the name of the collection in the same database to perform the join with.
103101
* @param localField specifies the field from the local collection to match values against.
104102
* @param foreignField specifies the field in the from collection to match values against.

driver-core/src/test/unit/com/mongodb/client/model/AggregatesSpecification.groovy

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,6 @@ class AggregatesSpecification extends Specification {
140140
stdDevPop('stdDevPop', '$quantity'),
141141
stdDevSamp('stdDevSamp', '$quantity')
142142
)) == groupDocument
143-
144-
toBson(group(null, [
145-
sum('sum', parse('{ $multiply: [ "$price", "$quantity" ] }')),
146-
avg('avg', '$quantity'),
147-
min('min', '$quantity'),
148-
max('max', '$quantity'),
149-
first('first', '$quantity'),
150-
last('last', '$quantity'),
151-
push('all', '$quantity'),
152-
addToSet('unique', '$quantity'),
153-
stdDevPop('stdDevPop', '$quantity'),
154-
stdDevSamp('stdDevSamp', '$quantity')
155-
])) == groupDocument
156143
}
157144

158145
def 'should render $sample'() {

0 commit comments

Comments
 (0)