[SERVER-59133] Change 'output' to be 'input' in syntax for $firstN/$lastN/$minN/$maxN Created: 05/Aug/21 Updated: 29/Oct/23 Resolved: 05/Nov/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.2.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mihai Andrei | Assignee: | Mihai Andrei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Sprint: | QE 2021-11-15 | ||||
| Participants: | |||||
| Linked BF Score: | 135 | ||||
| Description |
|
Currently, the exact top N operators have the following syntax: {$minN: {n: <expression for n>, output: <output expression>}} While this might make sense in the case of accumulators, this syntax is potentially confusing when the operators are used as expressions because the 'output' field is really the input to the expression. As such, we should consider modifying the syntax to disambiguate what is meant by the 'output' field. |
| Comments |
| Comment by Githook User [ 05/Nov/21 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}Message: |