Skip to content

Commit

Permalink
Fix bug of finished judge in HashAggregationOperator (#13842)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-hao-Li authored Oct 20, 2024
1 parent c664a93 commit 46a1335
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public ListenableFuture<?> isBlocked() {

@Override
public boolean hasNext() throws Exception {
return !finished;
return !finished || retainedTsBlock != null;
}

@Override
Expand Down Expand Up @@ -171,7 +171,7 @@ private void closeAggregationBuilder() {

@Override
public boolean isFinished() throws Exception {
return finished;
return finished && retainedTsBlock == null;
}

@Override
Expand Down

0 comments on commit 46a1335

Please sign in to comment.