Test $facet when given duplicate pipeline names

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When given duplicate pipeline names to a $facet stage, like

      { $facet: { a: [{$match: {a: 5}}], a: [{$match: {a: 0}}] } }

      the current behavior is that $facet will just take the last pipeline with that name.

       

      In SERVER-99210, we decided to reject $rankFusion queries that have duplicate pipeline names, so we filed this ticket to investigate if we should also have $facet reject those cases, or at least write tests to make sure the behavior is defined and deterministic.

              Assignee:
              Unassigned
              Reporter:
              Will Buerger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: