You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves#3172: Fix continuation bug in StreamAggregation plan (#3112)
The problem was: continuation is advanced after a group ends, so if we
execute the query with the returned continuation, we'll start from the
second row in the next group.
This PR fixes the problem, and adds more tests.
* **Bug fix** Fix continuation bug in AggregateCursor when a group is finished [Issue #3172](https://github.com/FoundationDB/fdb-record-layer/issues/3172)
* Update the previousValidResult to the next continuation even though it hasn't been returned. This is to return the correct continuation when there are single-element groups.
106
+
* Below is an example that shows how continuation(previousValidResult) moves:
* returns result (groupKey1, continuation = row2), and set previousValidResult = row3
117
+
*
118
+
* In scenario 2, a new iteration starts from row2 (because the last returned continuation = row1), and set initial previousResult = null, previousValidResult = null:
0 commit comments