diff options
author | Anton Korshunov <anton.korshunov@mongodb.com> | 2020-10-29 18:07:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-04 16:47:25 +0000 |
commit | b9630a4621e919837749c5010f3c8e3429a944a9 (patch) | |
tree | b9a73bacf2e96c6207caa05204bc01154efa40c1 /src/mongo/db/query/plan_cache_indexability_test.cpp | |
parent | 4666dc59f9aa93e4927bf9835b4bd038488d98f9 (diff) | |
download | mongo-b9630a4621e919837749c5010f3c8e3429a944a9.tar.gz |
SERVER-50728 Use QuerySolution to generate explain output at queryPlanner verbosity in SBE
Diffstat (limited to 'src/mongo/db/query/plan_cache_indexability_test.cpp')
-rw-r--r-- | src/mongo/db/query/plan_cache_indexability_test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/query/plan_cache_indexability_test.cpp b/src/mongo/db/query/plan_cache_indexability_test.cpp index f76a7797e1c..af7677a8cd5 100644 --- a/src/mongo/db/query/plan_cache_indexability_test.cpp +++ b/src/mongo/db/query/plan_cache_indexability_test.cpp @@ -71,6 +71,7 @@ auto makeWildcardEntry(BSONObj keyPattern, const MatchExpression* filterExpr = n WildcardKeyGenerator::createProjectionExecutor(keyPattern, {})); return std::make_pair(IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -91,6 +92,7 @@ TEST(PlanCacheIndexabilityTest, SparseIndexSimple) { state.updateDiscriminators( {IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -131,6 +133,7 @@ TEST(PlanCacheIndexabilityTest, SparseIndexCompound) { state.updateDiscriminators( {IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -178,6 +181,7 @@ TEST(PlanCacheIndexabilityTest, PartialIndexSimple) { state.updateDiscriminators( {IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -227,6 +231,7 @@ TEST(PlanCacheIndexabilityTest, PartialIndexAnd) { state.updateDiscriminators( {IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -289,6 +294,7 @@ TEST(PlanCacheIndexabilityTest, MultiplePartialIndexes) { state.updateDiscriminators( {IndexEntry(keyPattern_a, IndexNames::nameToType(IndexNames::findPluginName(keyPattern_a)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -301,6 +307,7 @@ TEST(PlanCacheIndexabilityTest, MultiplePartialIndexes) { nullptr), IndexEntry(keyPattern_b, IndexNames::nameToType(IndexNames::findPluginName(keyPattern_b)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -374,6 +381,7 @@ TEST(PlanCacheIndexabilityTest, IndexNeitherSparseNorPartial) { state.updateDiscriminators( {IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -395,6 +403,7 @@ TEST(PlanCacheIndexabilityTest, DiscriminatorForCollationIndicatesWhenCollations auto keyPattern = BSON("a" << 1); IndexEntry entry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, @@ -485,6 +494,7 @@ TEST(PlanCacheIndexabilityTest, CompoundIndexCollationDiscriminator) { state.updateDiscriminators( {IndexEntry(keyPattern, IndexNames::nameToType(IndexNames::findPluginName(keyPattern)), + IndexDescriptor::kLatestIndexVersion, false, // multikey {}, {}, |