diff options
author | David Storch <david.storch@mongodb.com> | 2021-02-09 19:28:33 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-12 21:32:26 +0000 |
commit | 234b3c55f416220d150c710e6caeb68391070cb5 (patch) | |
tree | e17fbfecbe7f997044dd2d9fb939753de7b466f0 /src/mongo/db/query/classic_stage_builder_test.cpp | |
parent | c8a02bacb3c3fa1a530669af7373603896f336d0 (diff) | |
download | mongo-234b3c55f416220d150c710e6caeb68391070cb5.tar.gz |
SERVER-53080 generate optimized covered shard filtering plans in SBE
When the SHARDING_FILTER stage's child is an IXSCAN, we will
generate a plan where the slots built from pieces of the
IXSCAN's keys are used directly to determine the shard key.
Diffstat (limited to 'src/mongo/db/query/classic_stage_builder_test.cpp')
-rw-r--r-- | src/mongo/db/query/classic_stage_builder_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/query/classic_stage_builder_test.cpp b/src/mongo/db/query/classic_stage_builder_test.cpp index 64f00ebf4c2..0fd2f44faa0 100644 --- a/src/mongo/db/query/classic_stage_builder_test.cpp +++ b/src/mongo/db/query/classic_stage_builder_test.cpp @@ -122,7 +122,8 @@ TEST_F(ClassicStageBuilderTest, VirtualScanTranslation) { // Construct a QuerySolution consisting of a single VirtualScanNode to test if a stream of // documents can be produced. - auto virtScan = std::make_unique<VirtualScanNode>(docs, true); + auto virtScan = + std::make_unique<VirtualScanNode>(docs, VirtualScanNode::ScanType::kCollScan, false); // Make a QuerySolution from the root virtual scan node. auto querySolution = makeQuerySolution(std::move(virtScan)); |