-
Type: Investigation
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
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.
- depends on
-
SERVER-82204 Classic window functions first/last handle missing field incorrectly
- Closed