[DOCS-16458] Investigate changes in SERVER-82204: Classic window functions first/last handle missing field incorrectly Created: 26/Oct/23  Updated: 13/Nov/23  Resolved: 09/Nov/23

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: 7.2.0-rc0, 6.0.12, 7.1.1, 5.0.23, 7.0.4, Server_Docs_20231113

Type: Task Priority: Minor - P4
Reporter: Backlog - Core Eng Program Management Team Assignee: Caleb Thompson
Resolution: Works as Designed Votes: 0
Labels: feature
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-82204 Classic window functions first/last h... Closed
Participants:
Days since reply: 12 weeks, 6 days ago

 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.



 Comments   
Comment by Caleb Thompson [ 09/Nov/23 ]

Confirmed with Jeff Allen that the docs already accurately reflect the change.

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