Skip to content

Commit

Permalink
move memory limit to parameter pos
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Jun 7, 2024
1 parent 34e8923 commit 3a33755
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions datafusion/physical-plan/src/aggregates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1947,8 +1947,13 @@ mod tests {
for use_coalesce_batches in [false, true] {
for is_first_acc in [false, true] {
for spill in [false, true] {
first_last_multi_partitions(use_coalesce_batches, is_first_acc, spill)
.await?
first_last_multi_partitions(
use_coalesce_batches,
is_first_acc,
spill,
4200,
)
.await?
}
}
}
Expand Down Expand Up @@ -2036,9 +2041,10 @@ mod tests {
use_coalesce_batches: bool,
is_first_acc: bool,
spill: bool,
max_memory: usize,
) -> Result<()> {
let task_ctx = if spill {
new_spill_ctx(2, 4200)
new_spill_ctx(2, max_memory)
} else {
Arc::new(TaskContext::default())
};
Expand Down

0 comments on commit 3a33755

Please sign in to comment.