summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_avg.cpp
diff options
context:
space:
mode:
authorEric Cox <eric.cox@mongodb.com>2021-09-23 17:09:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-23 17:44:38 +0000
commit1482ec7b3af3440a06176939f8fc835ba6394fbc (patch)
treeb54a0fdec28166f9d0d556c2bd14f6ea2945f3c1 /src/mongo/db/pipeline/accumulator_avg.cpp
parent9af446967575222fcfe87a24f2971adfd3935d8f (diff)
downloadmongo-1482ec7b3af3440a06176939f8fc835ba6394fbc.tar.gz
SERVER-60177 Handle empty collection in unionWith when pushing down
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_avg.cpp')
-rw-r--r--src/mongo/db/pipeline/accumulator_avg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/accumulator_avg.cpp b/src/mongo/db/pipeline/accumulator_avg.cpp
index daddd56f502..e9769bad27d 100644
--- a/src/mongo/db/pipeline/accumulator_avg.cpp
+++ b/src/mongo/db/pipeline/accumulator_avg.cpp
@@ -44,7 +44,7 @@ namespace mongo {
using boost::intrusive_ptr;
-REGISTER_ACCUMULATOR(avg, genericParseSingleExpressionAccumulator<AccumulatorAvg>);
+REGISTER_ACCUMULATOR(avg, genericParseSBEUnsupportedSingleExpressionAccumulator<AccumulatorAvg>);
REGISTER_STABLE_EXPRESSION(avg, ExpressionFromAccumulator<AccumulatorAvg>::parse);
REGISTER_REMOVABLE_WINDOW_FUNCTION(avg, AccumulatorAvg, WindowFunctionAvg);