Query SortPattern does not check for duplicate fields

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: