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

Literal and field name redaction for aggregate command

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-05-15, QO 2023-05-29

       

      db.runCommand(
         {
           aggregate: "<collection>" || 1,
           pipeline: [ <stage>, <...> ],
           explain: <boolean>,
           allowDiskUse: <boolean>,
           cursor: <document>,
           maxTimeMS: <int>,
           bypassDocumentValidation: <boolean>,
           readConcern: <document>,
           collation: <document>,
           hint: <string or document>,
           comment: <any>,
           writeConcern: <document>,
           let: <document> // Added in MongoDB 5.0
         }
      ) 

      The fields aggregate, pipeline, explain, allowDiskUse, collation, hint, and let are part of the query shape and will be abstracted as such. The remaining field values should have literals abstracted.

       

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            joshua.lapacik@mongodb.com Joshua Lapacik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: