Commit 3e34877
committed
feat: make sort pushdown BufferExec capacity configurable, default 1GB
Replace hardcoded 64MB BUFFER_CAPACITY_AFTER_SORT_ELIMINATION with
configurable `datafusion.execution.sort_pushdown_buffer_capacity`.
Default 1GB — large enough to hold wide-row data without I/O stalls.
This is strictly less memory than the SortExec it replaces, and actual
usage is bounded by partition size and global memory pool limits.
Closes #214171 parent cdfade5 commit 3e34877
3 files changed
Lines changed: 19 additions & 20 deletions
File tree
- datafusion
- common/src
- physical-optimizer/src
- sqllogictest/test_files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
560 | 573 | | |
561 | 574 | | |
562 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 68 | | |
83 | 69 | | |
84 | 70 | | |
| |||
102 | 88 | | |
103 | 89 | | |
104 | 90 | | |
| 91 | + | |
| 92 | + | |
105 | 93 | | |
106 | 94 | | |
107 | 95 | | |
| |||
124 | 112 | | |
125 | 113 | | |
126 | 114 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 115 | + | |
| 116 | + | |
131 | 117 | | |
132 | 118 | | |
133 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2221 | 2221 | | |
2222 | 2222 | | |
2223 | 2223 | | |
2224 | | - | |
| 2224 | + | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | 2227 | | |
| |||
2248 | 2248 | | |
2249 | 2249 | | |
2250 | 2250 | | |
2251 | | - | |
| 2251 | + | |
2252 | 2252 | | |
2253 | 2253 | | |
2254 | 2254 | | |
| |||
0 commit comments