[SERVER-63079] Avoid using projection parser in $setWindowFields Created: 28/Jan/22  Updated: 29/Oct/23  Resolved: 02/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.0.7, 5.2.2

Type: Improvement Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Related
related to SERVER-62322 Consistent validity treatment of empt... Closed
related to SERVER-63793 Add test demonstrating behavior of $s... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.2, v5.0
Participants:
Linked BF Score: 135

 Description   

The $setWindowFields is similar to a projection, so it makes sense to re-use the projection machinery. However we are currently passing the evaluated function result through the parser, which is (1) not correct in all cases (see SERVER-62322) and (2) not performant.



 Comments   
Comment by Githook User [ 04/Mar/22 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-63079 Avoid using projection parser in $setWindowFields execution

(cherry picked from commit 3688d67613ff68795b42425d9a53a24a76940b19)
Branch: v5.2
https://github.com/mongodb/mongo/commit/03d54e867d9102da57bb8743554f800bd0a325d5

Comment by Githook User [ 08/Feb/22 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-63079 Avoid using projection parser in $setWindowFields execution

(cherry picked from commit 3688d67613ff68795b42425d9a53a24a76940b19)
Branch: v5.0
https://github.com/mongodb/mongo/commit/4bc6d8f8a4b08d2ff848c4f56a905703453f9324

Comment by Githook User [ 01/Feb/22 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-63079 Avoid using projection parser in $setWindowFields execution
Branch: master
https://github.com/mongodb/mongo/commit/3688d67613ff68795b42425d9a53a24a76940b19

Generated at Thu Feb 08 05:56:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.