[DOCS-15592] [Server] Error in $lastN (aggregation accumulator) Created: 30/Aug/22  Updated: 30/Oct/23  Resolved: 12/Oct/23

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: 5.2.0
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Yuan Fang Assignee: Lauren Tran
Resolution: Won't Do Votes: 0
Labels: typo
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-08-30 at 1.22.51 PM.png    
Issue Links:
Related
related to SERVER-69239 $lastN ordering issue Closed
Participants:
Days since reply: 16 weeks, 6 days ago
Story Points: 1

 Description   

Hi,

I found this error when investigating a ticket reported by a customer: SERVER-69239

In the document, the result of Computing n Based on the Group Key for $group (without using $sort in descending order)

[
   { _id: { gameId: "G2" }, gamescores: [ 10 ] },
   { _id: { gameId: "G1" }, gamescores: [ 33, 31, 1 ] }
]

should be corrected to:

[
   { _id: { gameId: "G2" }, gamescores: [ 80 ] },
   { _id: { gameId: "G1" }, gamescores: [ 33, 31, 1 ] }
]

I attached a screen shoot to help locate it in the document.  Please let me know if you have any questions.

Thank you.

Regards,

Yuan

 



 Comments   
Comment by Lauren Tran [ 12/Oct/23 ]

Closing ticket because changes were already implemented

Generated at Thu Feb 08 08:13:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.