-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
const caseSensitive = { locale: "en", strength: 3 }; var coll = db.in; coll.drop(); assert.commandWorked(db.createCollection(coll.getName(), {collation: caseSensitive})); assert.commandWorked(coll.insert({elementField: "abcd"})); coll.find({elementField: {$in: ["aBcD", "ABCD"]}}).toArray();
./buildscripts/resmoke.py run --mongodSetParameters='{planRankerMode: "histogramCE"}' /tmp/repro.js
[j0] {"t":{"$date":"2025-02-18T16:15:56.295+00:00"},"s":"F", "c":"ASSERT", "id":23079, "ctx":"conn9","msg":"Invariant failure","attr":{"expr":"res <= 0","file":"src/mongo/db/query/index_bounds_builder.cpp","line":92}}
SERVER-97373 only implemented the fallback for index scan with collation. This bug indicates a problem when building bounds for a residual predicate.
- related to
-
SERVER-97373 Fallback to multiplanning for unsupported collection and index scans
-
- Closed
-