summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/cqf_command_utils.cpp
diff options
context:
space:
mode:
authorNaama Bareket <naama.bareket@mongodb.com>2023-03-27 14:51:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-28 14:44:14 +0000
commit44e4a2f0d5620d14831e3de306efd3d6a40e7f8a (patch)
tree17857c3fa55562d6a78289dc769a5943ebea043f /src/mongo/db/query/cqf_command_utils.cpp
parent4f7b5e0a1f82279e343f2644c9d7d906010b893d (diff)
downloadmongo-44e4a2f0d5620d14831e3de306efd3d6a40e7f8a.tar.gz
SERVER-74362: implement $percentile expression
Diffstat (limited to 'src/mongo/db/query/cqf_command_utils.cpp')
-rw-r--r--src/mongo/db/query/cqf_command_utils.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/query/cqf_command_utils.cpp b/src/mongo/db/query/cqf_command_utils.cpp
index fd873a344b4..d6afd731f9b 100644
--- a/src/mongo/db/query/cqf_command_utils.cpp
+++ b/src/mongo/db/query/cqf_command_utils.cpp
@@ -70,6 +70,7 @@
#include "mongo/db/pipeline/abt/document_source_visitor.h"
#include "mongo/db/pipeline/abt/match_expression_visitor.h"
#include "mongo/db/pipeline/abt/utils.h"
+#include "mongo/db/pipeline/accumulator_percentile.h"
#include "mongo/db/pipeline/document_source_bucket_auto.h"
#include "mongo/db/pipeline/document_source_change_stream_add_post_image.h"
#include "mongo/db/pipeline/document_source_change_stream_add_pre_image.h"
@@ -889,6 +890,15 @@ public:
unsupportedExpression();
}
+ void visit(const ExpressionFromAccumulatorQuantile<AccumulatorMedian>* expr) override final {
+ unsupportedExpression();
+ }
+
+ void visit(
+ const ExpressionFromAccumulatorQuantile<AccumulatorPercentile>* expr) override final {
+ unsupportedExpression();
+ }
+
void visit(const ExpressionFromAccumulator<AccumulatorStdDevPop>* expr) override final {
unsupportedExpression();
}