yashdotrv commented on PR #27129: URL: https://github.com/apache/datafusion/pull/27129#issuecomment-7198867728
@jayzhan211, thanks for adding to the merge queue! The merge queue CI runs aggregate_memory_spill.slt under a 24MB memory limit, where an incoming partial state batch with 32 groups of large array_agg states (~29MB) exceeded the total pool size, failing immediate memory admission. I have updated both FinalHashAggregateStream and ClusteredFinalAggregateStream so that if an incoming state batch itself exceeds the available pool after clearing the table, it is spilled directly to disk via spill_context.sort_and_spill(Some(batch)) (in 1MB chunks) and processed via spill replay. Verified with aggregate_memory_spill.slt and added unit tests for both streams. Merged the latest main as well. Could you please re-add this to the merge queue when you get a chance :) -- 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]
