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

Distinct against dbref fields fails.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc0
    • Affects Version/s: 2.5.5
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      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
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: