Skip to content

Commit 90d5a48

Browse files
committed
move probe update
1 parent 353b11b commit 90d5a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/physical-plan/src/aggregates/row_hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ impl Stream for GroupedHashAggregateStream {
684684
// Do the grouping
685685
self.group_aggregate_batch(batch)?;
686686

687-
self.update_skip_aggregation_probe(input_rows);
688687

689688
// If we can begin emitting rows, do so,
690689
// otherwise keep consuming input
@@ -712,6 +711,7 @@ impl Stream for GroupedHashAggregateStream {
712711
// Check if we should switch to skip aggregation mode
713712
// It's important that we do this before we early emit since we've
714713
// already updated the probe.
714+
self.update_skip_aggregation_probe(input_rows);
715715
if let Some(new_state) = self.switch_to_skip_aggregation()? {
716716
timer.done();
717717
self.exec_state = new_state;

0 commit comments

Comments
 (0)