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

Validate $merge whenMatched pipeline before execution time

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

      We should consider validating the $merge whenMatched pipeline sooner. Currently, it does not get parsed until execution time UNLESS the $merge stage is serialized for query settings/query stats (at which point the pipeline is parsed and re-serialized in the serialize() function).

      This doesn't manifest in any kind of user-facing bug but isn't ideal behavior, as it is odd to have the parsing error first be seen when serializing the stage (effectively making serialize() have side effects).

            Assignee:
            Unassigned Unassigned
            Reporter:
            alyssa.clark@mongodb.com Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: