-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 7.1.1
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
ALL
-
v7.1
-
QE 2023-10-16, QE 2023-10-30
-
147
In SBE Window stage we track the first/last documents in a window in dedicated slots. We use these slots to compute the first/last accumulators. We use these slots to decide if the window is empty and what the result should be. When the expression assigned to first/last accumulator in the query is a constant we do not associate it with a slot. Thus, we do not have a way to say if the window is empty. In this case we return the constant expression even when the window is empty. This is not expected. The results when the window is empty should be null.