Parallel array check in key generation is inconsistent with multikey definition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • ALL
    • Query 2017-02-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      db.mk.insertOne({"i":12, "j":17})
      db.mk.createIndex({"i":1, "j":1})
      

      on winningPlan "isMultiKey" : false.

      when i insert single element array still the multikey is false

      db.mk.insertOne({"i":12, "j":[17]})
      

      on winningPlan "isMultiKey" : false.

      in contrast

      db.mk.insertOne({"i":[12], "j":[17,21,24,27]})
      

      is not allowed though i is a single element array!

            Assignee:
            David Storch
            Reporter:
            Naresh Muddakkagari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: