mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) Yes ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) - Add support for $avg, $push in $setWindowFields stage. - Add inverse transition functions for $sum, $avg, $push ### Description Add the inverse transition function for $sum, $avg and $push for optimal window aggregation. Also for `$push` it is not currently usable in windowing because of its specific state requirement, need to add another state for window operation for `$push`