diff options
author | Naama Bareket <naama.bareket@mongodb.com> | 2023-03-27 14:51:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-28 14:44:14 +0000 |
commit | 44e4a2f0d5620d14831e3de306efd3d6a40e7f8a (patch) | |
tree | 17857c3fa55562d6a78289dc769a5943ebea043f /src/mongo/db/query/cqf_command_utils.cpp | |
parent | 4f7b5e0a1f82279e343f2644c9d7d906010b893d (diff) | |
download | mongo-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.cpp | 10 |
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(); } |