Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
Query 2018-09-24
Description
Example:
db.c.drop();
|
|
|
assert.commandWorked(db.adminCommand({setParameter: 1, internalQueryAllowAllPathsIndexes: true}));
|
|
|
db.c.insert({a: 1});
|
db.c.insert({a: {b: 1}});
|
|
|
assert.commandWorked(db.c.createIndex({"$**":1}));
|
|
|
const query = {a: {$in: [1, {b: 1}]}};
|
printjson(db.c.find(query).toArray());
|
printjson(db.c.explain("allPlansExecution").find(query).finish());
|
This query will attempt to use an allPaths index. We should make sure that it doesn't.
Attachments
Issue Links
- duplicates
-
SERVER-36731 Ban object inequality and $in with unsupported values when using allPaths indexes
-
- Closed
-