[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:
Problem/Incident
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: SERVER-59133 Change 'output' parameter to 'input' in syntax for $firstN/$lastN/$minN/$maxN
Branch: master
https://github.com/mongodb/mongo/commit/32064f88ed311247af2b707a3560e57543aebcc8

Generated at Thu Feb 08 05:46:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.