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

misleading error message printed when attempting to perform an unindexed sort on parallel arrays

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None

      > c.drop()
      true
      > c.save(

      {a:[[],[]]}

      )
      > c.find().sort(

      {'a.0':1,'a.1':1}

      )
      error:

      { "$err" : "cannot index parallel arrays [1] [0]", "code" : 10088 }

      There are no indexes involved here - the text of the error message should be changed.

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: