Analyze asserts when run twice on the same collection with collation

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • 3
    • 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.

            Assignee:
            Unassigned
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: