Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7376

Investigate changes in SERVER-82204: Classic window functions first/last handle missing field incorrectly

    XMLWordPrintableJSON

Details

    • Icon: Investigation Investigation
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • No version
    • None
    • None
    • None

    Description

      Original Downstream Change Summary

      The $first/$last operator in $setWindowFields will now set null to missing fields to be consistent with $first/$last in $group.

      Description of Linked Ticket

      When the attribute tracked by first/last in the first/last document in the window has a missing attribute the functions return empty results. This is incorrect. According to the documentation they should return null to be consistent with the $group behaviour.

      Attachments

        Activity

          People

            Unassigned Unassigned
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: