Use SortPattern instead of raw BSON in query planner

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • Query 2019-12-30, Query 2020-02-24, Query 2020-03-09
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Now that SortPattern is exposed, and we have a type-safe representation of a sort pattern, we should use it in the query planner.

       

      There are many places where we use raw BSON in the planner.

       

      This work would involve creating a SortPattern as part of canonicalization, and hanging it off of the CanonicalQuery. Then, updating all callers of QueryRequest::getSort() in the query planner to use the sort pattern instead.

            Assignee:
            Svilen Mihaylov (Inactive)
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: