Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15592

[Server] Error in $lastN (aggregation accumulator)

    • 1

      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

       

            Assignee:
            lauren.tran@mongodb.com Lauren Tran
            Reporter:
            yuan.fang@mongodb.com Yuan Fang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              30 weeks, 1 day ago