[SERVER-56685] Require explicit sortBy for $expMovingAvg window function Created: 05/May/21  Updated: 29/Oct/23  Resolved: 13/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

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

Backwards Compatibility: Fully Compatible
Sprint: Query Optimization 2021-05-17
Participants:

 Description   

The $expMovingAvg function conceptually implies that documents within a partition have some ordering to them, such that more recent values have a higher weight than older ones. Instead of returning an arbitrary result based on the non-sorted order of documents, we should require an explicit sortBy.



 Comments   
Comment by Githook User [ 13/May/21 ]

Author:

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

Message: SERVER-56685 Stricter parsing for $expMovingAvg, require an explicit 'sortBy' and 'alpha' between 0 and 1
Branch: master
https://github.com/mongodb/mongo/commit/b28b53d23843c0e42e0751673c76088a3e7e60fa

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