Repository navigation
Commit 6924c6a
authored
fix: reserve initial table memory in aggregate streams (#25900)
## Which issue does this PR close?
None
## Rationale for this change
pre allocated memory and held memory should be counted
## What changes are included in this PR?
reserve the hash table memory on creation, similar to what was already
done in:
- #24692
## What is the testing strategy for this PR?
added unit tests
## Are there any user-facing changes?
No1 parent 060ac92 commit 6924c6a
8 files changed
Lines changed: 301 additions & 101 deletions
File tree
- datafusion
- core/tests/memory_limit
- physical-plan/src/aggregates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
617 | 620 | | |
618 | 621 | | |
619 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
620 | 626 | | |
621 | 627 | | |
622 | 628 | | |
| |||
926 | 932 | | |
927 | 933 | | |
928 | 934 | | |
929 | | - | |
| 935 | + | |
930 | 936 | | |
931 | 937 | | |
932 | 938 | | |
| |||
1007 | 1013 | | |
1008 | 1014 | | |
1009 | 1015 | | |
1010 | | - | |
| 1016 | + | |
1011 | 1017 | | |
1012 | 1018 | | |
1013 | 1019 | | |
| |||
0 commit comments