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: [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]