LogicFan commented on PR #15610:
URL: https://github.com/apache/datafusion/pull/15610#issuecomment-2869669114
I've tried to use this branch to sort data larger than memory. For 24GB
parquet file, it produce error `Error: ArrowError(IoError("No space left on
device (os error 28)", Os { code: 28, kind: StorageFull, message: "No space
left on device" }), None)` (i think this suggest it uses up all 100GB default
DiskManager?)
here is the configuration i use
```
let cfg = SessionConfig::new()
.with_sort_max_spill_merge_degree(2)
.with_sort_spill_reservation_bytes(1 << 10)
.with_sort_in_place_threshold_bytes(1 << 10)
.set_usize("datafusion.execution.batch_size", 16)
.set_usize("datafusion.execution.soft_max_rows_per_output_file",
2048)
.set_usize("datafusion.execution.minimum_parallel_output_files", 32);
let memory_pool = Arc::new(TrackConsumersPool::new(
FairSpillPool::new(16 * (1 << 30)),
NonZeroUsize::new(5).unwrap(),
));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]