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

Query SortPattern does not check for duplicate fields

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Minor Change
    • QO 2023-04-17, QO 2023-05-01

      The SortPattern constructors do not check for duplicate paths being in the sort pattern, e.g.

      {a:1, b:1, a:1}

      . This is something we should check for and disallow. There may be existing places in our codebase where a sort pattern with duplicate field names are created by accident.

            Assignee:
            peter.volk@mongodb.com Peter Volk
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: