Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
1.6.5
-
None
-
Ubuntu 10.10 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 11:55:36 UTC 2010 x86_64 GNU/Linux
python 2.6.6
pymongo 1.9
-
Major Change
-
Linux
Description
When i trying to make sort on map/reduce it fails with "db assertion failure"
I wrote code in python, here it is:
m = Code("""function() {
data = {};
res = ''
if(this.result_id) {
res=
;
} else
emit(this.data, res);
}""")
r = Code("""function(k,values) {
data={};
for(var i=0; i<values.length; i++ )
return data
}""")
res = self.db.tasks.map_reduce(m,r,query=
{'job_id':job_id},sort=
{'position':pymongo.ASCENDING})
But when i turn off sorting it works pretty fine.
Attachments
Issue Links
- is related to
-
CSHARP-472 MapReduce fails with options SetQuery, SetSortOrder
-
- Closed
-