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

Distinct command no longer supports $comment

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Query
    • ALL

      SERVER-39256 broke $comment support for the distinct command:

      $ mongo
      MongoDB shell version v4.0.1
      connecting to: mongodb://127.0.0.1:27017
      MongoDB server version: 4.1.9-87-g40f54965f9
      WARNING: shell and server versions do not match
      > db.runCommand({distinct:"test", key: "x", $comment: "dsf"})
      {
      	"ok" : 0,
      	"errmsg" : "BSON field 'distinct.$comment' is an unknown field.",
      	"code" : 40415,
      	"codeName" : "Location40415"
      }
      

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: