We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10706ae commit 3c4948fCopy full SHA for 3c4948f
1 file changed
datafusion/physical-plan/src/aggregates/row_hash.rs
@@ -194,7 +194,9 @@ impl SkipAggregationProbe {
194
if self.input_rows >= self.probe_rows_threshold {
195
self.should_skip = self.num_groups as f64 / self.input_rows as f64
196
>= self.probe_ratio_threshold;
197
- self.is_locked = true;
+ // Set is_locked to true only if we have decided to skip, otherwise we can try to skip
198
+ // during processing the next record_batch.
199
+ self.is_locked = self.should_skip;
200
}
201
202
0 commit comments