[SERVER-12641] Distinct against dbref fields fails. Created: 06/Feb/14  Updated: 11/Jul/16  Resolved: 11/Feb/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.5.5
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Craig Wilson Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

db.drop();
db.foo.insert({a:{$ref: "bar", $id: 1, $db:"other"}});
 
// any of the below fail
db.foo.distinct("a.$db");
db.foo.distinct("a.$ref");
db.foo.distinct("a.$id");

The following error code shows up:

Thu Feb 06 09:23:44.489 distinct failed: {
        "errmsg" : "exception: Can't get runner for query {}",
        "code" : 17216,
        "ok" : 0
} at src/mongo/shell/collection.js:879



 Comments   
Comment by Githook User [ 11/Feb/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-12641 support projections on DBRef fields
Branch: master
https://github.com/mongodb/mongo/commit/3623d555f54d7fe168029085142f6d6dee03c96e

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