Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions datafusion/physical-plan/src/aggregates/hash_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ impl PartialHashAggregateStream {

let reservation =
MemoryConsumer::new(format!("PartialHashAggregateStream[{partition}]"))
// We interpret 'can spill' as 'can handle memory back pressure'.
// This value needs to be set to true for the default memory pool implementations
// to ensure fair application of back pressure amongst the memory consumers.
.with_can_spill(true)
.register(context.memory_pool());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ impl PartialReduceHashAggregateStream {

let reservation =
MemoryConsumer::new(format!("PartialReduceHashAggregateStream[{partition}]"))
// We interpret 'can spill' as 'can handle memory back pressure'.
// This value needs to be set to true for the default memory pool implementations
// to ensure fair application of back pressure amongst the memory consumers.
.with_can_spill(true)
.register(context.memory_pool());

Ok(Self {
Expand Down