diff options
author | Anton Korshunov <anton.korshunov@mongodb.com> | 2019-11-13 15:35:46 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-13 15:35:46 +0000 |
commit | 3257557caef6778ea8a1a128f04d94607f1aa4cf (patch) | |
tree | 75f12e4c0219f213a64c4c54b22ac47d46839a63 /src/mongo/db/exec/projection.cpp | |
parent | fb3941e82517fd904965522cbef8a91450e45ec1 (diff) | |
download | mongo-3257557caef6778ea8a1a128f04d94607f1aa4cf.tar.gz |
SERVER-43404 Delete ParsedAggregationProjection::parse() and use ProjectionAST in DocumentSourceProject
Diffstat (limited to 'src/mongo/db/exec/projection.cpp')
-rw-r--r-- | src/mongo/db/exec/projection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/exec/projection.cpp b/src/mongo/db/exec/projection.cpp index 514b90a78a4..13e48a44c4c 100644 --- a/src/mongo/db/exec/projection.cpp +++ b/src/mongo/db/exec/projection.cpp @@ -174,7 +174,8 @@ ProjectionStageDefault::ProjectionStageDefault(boost::intrusive_ptr<ExpressionCo : ProjectionStage{expCtx, projObj, ws, std::move(child), "PROJECTION_DEFAULT"}, _wantRecordId{projection->metadataDeps()[DocumentMetadataFields::kRecordId]}, _projectType{projection->type()}, - _executor{projection_executor::buildProjectionExecutor(expCtx, projection, {})} {} + _executor{projection_executor::buildProjectionExecutor( + expCtx, projection, {}, true /* optimizeExecutor */)} {} Status ProjectionStageDefault::transform(WorkingSetMember* member) const { Document input; |