[COMPASS-2879] Count stage is not being evaluated properly after moving it in the pipeline Created: 26/May/18 Updated: 29/Oct/23 Resolved: 27/May/18 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Aggregation pipeline |
| Affects Version/s: | 1.14.0-beta |
| Fix Version/s: | 1.14.0, 1.15.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Grigori Melnik (Inactive) | Assignee: | Durran Jordan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Sprint Vanilla Ice |
| Description |
|
It requires renaming the parameter to get it re-evaluated. Otherwise, it keeps showing "No Preview documents".
Repro steps:
Both stages are properly evaluated and the count stage shows "movies":1065 4. Create new $match stage, $match {} The stage appears after $count 5. Rearrange the stages for the $count to be the last stage again. Instead of showing 1065, it shows "No Preview documents". If I go a rename "movies" in the $count stage to "films", it produces the expected result: "films":1065 |