Skip to content

Apache DataFusion SQL Query Engine

GroupedHashAggregateStream should register spillable consumer (#8002)

Marko Milenković5634cce35f6c
diff --git a/datafusion/physical-plan/src/aggregates/row_hash.rs b/datafusion/physical-plan/src/aggregates/row_hash.rs
index 7b66088584..f1eece4315 100644
--- a/datafusion/physical-plan/src/aggregates/row_hash.rs
+++ b/datafusion/physical-plan/src/aggregates/row_hash.rs
@@ -328,7 +328,9 @@ impl GroupedHashAggregateStream {
.collect();
let name = format!("GroupedHashAggregateStream[{partition}]");
- let reservation = MemoryConsumer::new(name).register(context.memory_pool());
+ let reservation = MemoryConsumer::new(name)
+ .with_can_spill(true)
+ .register(context.memory_pool());
let group_ordering = agg
.aggregation_ordering