Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26921

Parallel array check in key generation is inconsistent with multikey definition

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

      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@mongodb.com David Storch
            Reporter:
            mnareshy Naresh Muddakkagari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: