yihua opened a new pull request, #8238: URL: https://github.com/apache/hudi/pull/8238
### Change Logs This PR adds the logic of inferring the cleaning policy based on clean configs. By default, the cleaning policy is determined based on one of the following configs explicitly set by the user (at most one of them can be set; otherwise, KEEP_LATEST_COMMITS cleaning policy is used): - "hoodie.cleaner.commits.retained": the KEEP_LATEST_COMMITS cleaning policy is used; - "hoodie.cleaner.hours.retained": the KEEP_LATEST_BY_HOURS cleaning policy is used; - "hoodie.cleaner.fileversions.retained": the KEEP_LATEST_FILE_VERSIONS cleaning policy is used. Now setting only one of the configs above automatically switch the cleaning policy. ### Impact A user does not need to explicitly set the cleaning policy alongside the one of following configs: "hoodie.cleaner.commits.retained", "hoodie.cleaner.hours.retained", or "hoodie.cleaner.fileversions.retained". ### Risk level none ### Documentation Update Docs update: HUDI-595 ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
