The $setWindowFields is similar to a projection, so it makes sense to re-use the projection machinery. However we are currently passing the evaluated function result through the parser, which is (1) not correct in all cases (see SERVER-62322) and (2) not performant.
- related to
-
SERVER-62322 Consistent validity treatment of empty objects (i.e., `{}`)
- Closed
-
SERVER-63793 Add test demonstrating behavior of $setWindowField's 'output' parameter
- Closed