Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
Backlog
-
None
-
None
-
Fully Compatible
-
ALL
-
-
QE 2021-10-04
Description
This test explicitly tests for a list of expected stages in the explain plan, for example:
pipeline = [{$project: {a: 0}}, {$group: {_id: "$a", b: {$sum: "$b"}}}];
|
assertPipelineUsesAggregation({
|
pipeline: pipeline,
|
expectedStages: ["COLLSCAN", "PROJECTION_SIMPLE", "$project"],
|
});
|
Now when we push group down, there will be an extra group stage. All we need to do is update the `expectedStages` list to check for the GROUP stage when we know $group will be pushed down.