amogh-jahagirdar commented on code in PR #10150:
URL: https://github.com/apache/iceberg/pull/10150#discussion_r1572688551


##########
core/src/main/java/org/apache/iceberg/BaseOverwriteFiles.java:
##########
@@ -48,6 +48,10 @@ protected OverwriteFiles self() {
 
   @Override
   protected String operation() {
+    if (deletesDataFiles() && !addsDataFiles()) {
+      return DataOperations.DELETE;
+    }
+

Review Comment:
   This looks good, but does the inverse also apply here? I think it does: If 
OverwriteFiles only addsDataFiles we should produce an "append" operation. 



##########
core/src/main/java/org/apache/iceberg/BaseOverwriteFiles.java:
##########
@@ -48,6 +48,10 @@ protected OverwriteFiles self() {
 
   @Override
   protected String operation() {
+    if (deletesDataFiles() && !addsDataFiles()) {
+      return DataOperations.DELETE;
+    }
+

Review Comment:
   Also if we wanted to address that separately that's also good with me.



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to