Is your feature request related to a problem or challenge?
In Comet, we see some queries "hang" when running with minimal memory. The issue appears to be that we have hundreds of spill files and each spill requires its own tokio blocking thread and Comet does not have enough threads available.
See apache/datafusion-comet#1523 (comment) for more detail.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response