-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 7.1.0-rc0
-
Component/s: None
-
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.