xxubai opened a new issue, #3749: URL: https://github.com/apache/amoro/issues/3749
### Search before asking - [x] I have searched in the [issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no similar issues. ### What would you like to be improved? The previous implementation performed a global scan on partitioned tables, which often caused OOM issues when handling large Iceberg tables. The main reasons are: 1. High memory consumption when a table contains a large number of files; 2. Loading too many column stats, especially from delete files 3. Lack of filtering on the tables that actually need to be processed. ### How should we improve? We propose a manifest-based, partition-aware data expiration approach: - Identify candidate manifest files based on their partition boundaries and expire files that do not meet retention conditions; - Iterate through manifest files sequentially to collect partition and file-level information; - Perform expiration in a partition-by-partition manner, which allows submitting cleanup tasks per partition. ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Subtasks _No response_ ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
