Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-99168

Test $facet when given duplicate pipeline names

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

      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 Unassigned
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: