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

$geoNear expression fails to re-parse

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Integration
    • Fully Compatible
    • ALL

      This geoNear syntax fails to re-parse:

      db.c.find({loc: {$geoNear: [0, 0]}} 
      {"t":{"$date":"2023-12-07T15:53:53.103+00:00"},"s":"I",  "c":"COMMAND",  "id":51803,   "ctx":"conn1","msg":"Slow query","attr":{"type":"command","isFromUserConnection":true,"ns":"admin.$cmd.aggregate","collectionType":"admin","appName":"MongoDB Shell","command":{"aggregate":1,"cursor":{},"pipeline":[{"$queryStats":{}},{"$project":{"key":1}}],"lsid":{"id":{"$uuid":"68221861-db84-4b10-84ff-9cb688ada8a5"}},"$db":"admin"},"numYields":0,"queryFramework":"classic","ok":0,"errMsg":"PlanExecutor error during aggregation :: caused by :: Was not able to re-parse queryStats key when reading queryStats.Status BadValue: Could not re-parse a representative query shape :: caused by :: invalid argument in geo near query: 0 Hash: 15482305599978419614 Query Shape: { cmdNs: { db: \"test\", coll: \"t\" }, command: \"find\", filter: { loc: { $geoNear: [ 1 ] } } }","errName":"Location7349401","errCode":7349401,"reslen":459,"locks":{},"cpuNanos":159458281,"remote":"127.0.0.1:54052","protocol":"op_msg","durationMillis":159}} 

            Assignee:
            alyssa.clark@mongodb.com Alyssa Clark
            Reporter:
            alyssa.clark@mongodb.com Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: