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

Confusing error when $meta projecting geoNearDistance for non-geo query

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

      Seems to be a confusing response. Also seems inconsistent that we don't error out when nothing is returned from the query.

      > db.test.drop()
      true
      > x = db.test.find({}, {b:{$meta: "geoNearDistance"}})
      >
      > db.test.insert({a:1})
      Insert WriteResult({ "ok" : 1, "n" : 1 })
      > x = db.test.find({}, {b:{$meta: "geoNearDistance"}})
      error: {
              "$err" : "Runner error, memory limit for sort probably exceeded",
              "code" : 17144
      }
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            andrew.emil@10gen.com Andrew Emil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: