Skip to content

Commit 2886650

Browse files
Rachelintalamb
andcommitted
Update datafusion/functions-aggregate/src/median.rs
Co-authored-by: Andrew Lamb <[email protected]>
1 parent a8852af commit 2886650

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datafusion/functions-aggregate/src/median.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ impl<T: ArrowNumericType + Send> GroupsAccumulator for MedianGroupsAccumulator<T
468468
.iter()
469469
.map(|values| values.capacity() * size_of::<T>())
470470
.sum::<usize>()
471+
// account for size of self.grou_values too
472+
+ self.group_values.capacity() * size_of::<Vec<T>>()
471473
}
472474
}
473475

0 commit comments

Comments
 (0)