Allow $rank and $denseRank window functions to operate without a SortKeyPattern

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the operator requires a SortKeyPattern to generate a SortKeyGenerator to generate values to compare. If the inputs given to the accumulator were already sort keys, which should be available via {$meta: "sortKey"}, then it should be faster. This will not only boost some performance, and make it easier to build syntactic sugar for a $rankFusion stage, since we won't have to generate and pass along a sort pattern.

              Assignee:
              Charlie Swanson
              Reporter:
              Joe Kanaan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: