-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
db.createCollection("collation", {collation: {locale: 'en', strength: 2}}) db.collation.insert({a: 'abc'}) db.runCommand({analyze: "collation", key: "a"}) db.runCommand({analyze: "collation", key: "a"}) // MongoServerError: Cannot find index to verify that join fields will be unique
This error message comes from the $merge stage generated by the analyze command complaining that the collation of the source collection is different than that of the existing statistics collection.