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

grouped_match_push_down.js wrong assert on getStageSequence() result

    • Fully Compatible
    • ALL
    • v7.0

      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@mongodb.com Matt Olma
            Reporter:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: