Limit $rank sort key changes to $rankFusion contexts on 8.0

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.16
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • v8.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When enabling the rank fusion feature in a non-FCV-gated context, $setWindowFields queries meeting the following criteria can fail during the upgrade process:

      1. $setWindowFields using $rank, $denseRank, or $documentNumber
      2. running on an unsharded collection in a sharded cluster
      3. running on a timeseries collection OR in a pipeline that includes complex stages before $setWindowFields, preventing sort pushdown

      To avoid these failures, we will limit the use of the new outputSortKeyMetadata $sort field and $rank implementation depending on that output to $rankFusion contexts.

            Assignee:
            Alyssa Clark
            Reporter:
            Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: