grouped_match_push_down.js wrong assert on getStageSequence() result

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v7.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      jstests/aggregation/sources/group/grouped_match_push_down.js function assertOptimizeMatchRenameAggregationPipelineWithDottedRename() has an incorrect assertion in it on the result of child call getStageSequence():

      assert(getStageSequence(explainOutput), stageSequence);
      

      This assert() should actually be assertEq(). As it stands, this assert always passes because it asserts that the result from getStageSequence() is defined (which it always is), and it will print the value of 'stageSequence' as the error message if this is false.

      The intention of this is to assertEq() that the result from getStageSequence() matches the value of 'stageSequence'.

      Introduced to 7.1.0-rc0 by SERVER-73253.

            Assignee:
            Matt Olma
            Reporter:
            Kevin Cherkauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: