Skip to content

Commit

Permalink
mondodb: fix 'sum' aggregation operator
Browse files Browse the repository at this point in the history
  • Loading branch information
imedina committed Dec 12, 2024
1 parent 26c9628 commit 10a7f0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ public List<FacetField> convertToDataModelType(Document document) {
Document documentValue = ((List<Document>) entry.getValue()).get(0);
MongoDBQueryUtils.Accumulator accumulator = getAccumulator(documentValue);
switch (accumulator) {
case avg:
case sum:
case max:
case min:
case avg:
case stdDevPop:
case stdDevSamp: {
List<Double> fieldValues = new ArrayList<>();
Expand Down

0 comments on commit 10a7f0c

Please sign in to comment.