Skip to content

Commit

Permalink
assert input is not done
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 19, 2023
1 parent 048b5cd commit 372196e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions datafusion/core/src/physical_plan/aggregates/row_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,8 @@ impl Stream for GroupedHashAggregateStream {

// If we can begin emitting rows, do so,
// otherwise keep consuming input
let to_emit = if self.input_done {
Some(EmitTo::All)
} else {
self.group_ordering.emit_to()
};
assert!(!self.input_done);
let to_emit = self.group_ordering.emit_to();

if let Some(to_emit) = to_emit {
let batch =
Expand Down

0 comments on commit 372196e

Please sign in to comment.