RussellSpitzer commented on a change in pull request #1352:
URL: https://github.com/apache/iceberg/pull/1352#discussion_r472237333
##########
File path: core/src/main/java/org/apache/iceberg/DeleteFileIndex.java
##########
@@ -78,6 +82,10 @@
this.sortedDeletesByPartition = sortedDeletesByPartition;
}
+ public boolean isEmpty() {
+ return (globalDeletes == null || globalDeletes.length == 0) &&
sortedDeletesByPartition.isEmpty();
Review comment:
Should we have a Precondition that sortedDeletesByPartition is not null
in the constructor?
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]