Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Fully Compatible
-
ALL
-
v4.0, v3.6
-
Query 2019-12-02, Query 2019-12-16
-
(copied to CRM)
Description
SERVER-39109 inadvertently thwarted an optimization to re-compute the set of fields needed for the aggregation. Instead of re-computing the dependencies in such a scenario, it will get confused because the $cursor stage has already been added and mistakenly report that all fields are needed for the aggregation. We should restore the optimization.