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

grouped_match_push_down.js wrong assert on getStageSequence() result

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • 7.1.0-rc0
    • None
    • Fully Compatible
    • ALL

    Description

      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.

      Attachments

        Activity

          People

            matt.olma@mongodb.com Matt Olma
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: