diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2021-05-24 09:35:22 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-24 21:00:21 +0000 |
commit | c7f0e955947f30d328781cd039eaee85aa8664aa (patch) | |
tree | d8859f00c5d34e795fa8923df8be0ee9ee093050 /src | |
parent | e465a2c8dcc8d8f0676eaf266e809a71d946c07c (diff) | |
download | mongo-c7f0e955947f30d328781cd039eaee85aa8664aa.tar.gz |
SERVER-57148 Pass variables states to input evaluation in removable range executor
(cherry picked from commit 52501e767b89130fe2aa0d6bd9a8b3ba1fdced00)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/pipeline/window_function/window_function_exec_removable_range.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/window_function/window_function_exec_removable_range.cpp b/src/mongo/db/pipeline/window_function/window_function_exec_removable_range.cpp index 746baeb44fb..8518e4a864a 100644 --- a/src/mongo/db/pipeline/window_function/window_function_exec_removable_range.cpp +++ b/src/mongo/db/pipeline/window_function/window_function_exec_removable_range.cpp @@ -105,7 +105,7 @@ void WindowFunctionExecRemovableRange::update() { if (added) { auto [lower, upper] = *added; for (auto i = lower; i <= upper; ++i) { - addValue(_input->evaluate(*_iter[i], nullptr)); + addValue(_input->evaluate(*_iter[i], &_input->getExpressionContext()->variables)); } } if (removed) { |