summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMihai Andrei <mihai.andrei@10gen.com>2022-04-22 14:29:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-22 14:59:06 +0000
commit0a16e785f7016c92fb3357377ef2d6d50db3ffc9 (patch)
tree90600534ec4f0c8aa3d32a4bb847f6a1557a8b12 /src
parente2409b8fe098383a18ad98eda9ae176fa9d05779 (diff)
downloadmongo-0a16e785f7016c92fb3357377ef2d6d50db3ffc9.tar.gz
SERVER-65665 Disallow the use of indexes with partial filter expressions in INLJ (cherry picked from commit b02798f3032ff6df56a45b4bcb9296b247c37be4)
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/query/planner_analysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/planner_analysis.cpp b/src/mongo/db/query/planner_analysis.cpp
index 654fa0f56ca..af4777dc0e2 100644
--- a/src/mongo/db/query/planner_analysis.cpp
+++ b/src/mongo/db/query/planner_analysis.cpp
@@ -662,7 +662,7 @@ void QueryPlannerAnalysis::determineLookupStrategy(
if ((index.type == INDEX_BTREE || index.type == INDEX_HASHED) &&
index.keyPattern.firstElement().fieldName() ==
eqLookupNode->joinFieldForeign.fullPath() &&
- CollatorInterface::collatorsMatch(collator, index.collator)) {
+ !index.filterExpr && CollatorInterface::collatorsMatch(collator, index.collator)) {
return index;
}
}