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

Require explicit sortBy for $expMovingAvg window function

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query Optimization 2021-05-17

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: