rodmeneses commented on code in PR #15566:
URL: https://github.com/apache/iceberg/pull/15566#discussion_r2926024978


##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java:
##########
@@ -626,6 +633,92 @@ public Builder setSnapshotProperty(String property, String 
value) {
       return this;
     }
 
+    /**
+     * Enables or disables compaction (rewriting data files) as a post-commit 
maintenance task.
+     *
+     * @param enabled whether to enable compaction
+     * @see RewriteDataFilesConfig for the default config.
+     * @deprecated See {@code rewriteDatafiles(..)}
+     */
+    @Deprecated
+    public Builder compaction(boolean enabled) {
+      writeOptions.put(FlinkWriteOptions.COMPACTION_ENABLE.key(), 
Boolean.toString(enabled));
+      return this;
+    }

Review Comment:
   +1 on this. I think the best API would be to let the user choose what kind 
of "compaction task" they want to enable. I'd even suggest to mark for deletion 
in the next release (or at least the next to next release)



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