[SERVER-54049] Translate window function AST to execution state for accumulator-style functions Created: 26/Jan/21  Updated: 29/Oct/23  Resolved: 23/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task 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:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Query Optimization 2021-02-22, Query Optimization 2021-03-08
Participants:
Linked BF Score: 0

 Description   

Note that this ticket should only handle non-removable position-based windows, as the execution state for such windows already exists for accumulators (AccumulatorState). So the task here is to walk the parsed tree and produce the correct AccumulatorState along with the corresponding window manager to be used by the aggregation stage.

The full list of supported accumulators: sum, avg, stddev, min, max, count, first, last, push, addToSet



 Comments   
Comment by Githook User [ 23/Feb/21 ]

Author:

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

Message: SERVER-54049 Add translation phase for accumulator-style window functions
Branch: master
https://github.com/mongodb/mongo/commit/e8134e5da39f19b661efb488bb392abbbf436c74

Comment by Githook User [ 23/Feb/21 ]

Author:

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

Message: Revert "SERVER-54049 Add translation phase for accumulator-style window functions"

This reverts commit 8b27b6710d4db7cefb840309903462ed40007402.
Branch: master
https://github.com/mongodb/mongo/commit/d93aff7795f7089e9bdd253db792c6878c4be1cd

Comment by Githook User [ 22/Feb/21 ]

Author:

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

Message: SERVER-54049 Add translation phase for accumulator-style window functions
Branch: master
https://github.com/mongodb/mongo/commit/8b27b6710d4db7cefb840309903462ed40007402

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