leesf commented on a change in pull request #2875:
URL: https://github.com/apache/hudi/pull/2875#discussion_r619821996



##########
File path: 
hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java
##########
@@ -152,6 +154,22 @@ private static void setupHoodieKeyOptions(Configuration 
conf, CatalogTable table
     }
   }
 
+  /**
+   * Sets up the cleaning options from the table definition.
+   */
+  private static void setupCleaningOptions(Configuration conf) {
+    int commitsToRetain = conf.getInteger(FlinkOptions.CLEAN_RETAIN_COMMITS);
+    int minCommitsToKeep = conf.getInteger(FlinkOptions.ARCHIVE_MIN_COMMITS);
+    if (commitsToRetain >= minCommitsToKeep) {

Review comment:
       @danny0405 so here we would change `FlinkOptions.CLEAN_RETAIN_COMMITS`, 
`FlinkOptions.ARCHIVE_MIN_COMMITS`, `ARCHIVE_MIN_COMMITS ` to a larger default 
value to remove the logic here?  




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to