ebyhr opened a new pull request, #18784:
URL: https://github.com/apache/iceberg/pull/18784

   The `computeAndWriteStatsFile` loaded the whole previous stats file into 
memory before merging. Now it streams the previous file and merges it with the 
sorted incremental stats, so only the incremental stats are held in memory. 
Peak heap growth for an incremental write on a 500k-partition table dropped 
from ~186 MB to ~33 MB.
   
   The existing tests cover the incremental merge and corrupted-file fallback. 
The new test checks merged output stays sorted by partition.


-- 
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]

Reply via email to