yashdotrv commented on issue #26705: URL: https://github.com/apache/datafusion/issues/26705#issuecomment-7260210014
@jayzhan211, now moving forward to confirm my understanding... the gap is that CoalescePartitionsExec holds up to one state batch per partition in its channel after the partial aggregate frees its reservation, so with N partitions, up to N-1 batches sit unreserved while the final aggregate processes the first. So, the fix would be to transfer the memory reservation along with the batch so it stays accounted for until the final aggregate actually pulls and owns it. I'll start by looking at how CoalescePartitionsExec manages its channel and the reservation handoff pattern in memory_pool. -- 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]
