Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56685

Require explicit sortBy for $expMovingAvg window function

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Query Optimization 2021-05-17

      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.

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: