[SERVER-4347] misleading error message printed when attempting to perform an unindexed sort on parallel arrays Created: 22/Nov/11  Updated: 11/Jul/16  Resolved: 29/Nov/11

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Major - P3
Reporter: Aaron Staple Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

> 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.



 Comments   
Comment by auto [ 28/Nov/11 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4347: modify user assertion message for attempting to sort with parallel arrays
Branch: master
https://github.com/mongodb/mongo/commit/12da4783d45c724f703d33dbd94629b435fcf439

Generated at Thu Feb 08 03:05:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.