Align $sort modifier update operator with its agg stage counterpart.

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Today, with the $sort modifier update operator used with $push, it currently uses PatternElementCmp to store the sort pattern. We should re-use SortPattern instead, which is used with agg stages. This would not only align capabilities (such as expression comparison), but also allow for re-use of its serialize(...) method for shapification use.

            Assignee:
            Unassigned
            Reporter:
            Calvin Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: