danielcweeks commented on code in PR #11495: URL: https://github.com/apache/iceberg/pull/11495#discussion_r1835104546
########## core/src/main/java/org/apache/iceberg/MergingSnapshotProducer.java: ########## @@ -245,13 +250,13 @@ private PartitionSpec spec(int specId) { /** Add a delete file to the new snapshot. */ protected void add(DeleteFile file) { - Preconditions.checkNotNull(file, "Invalid delete file: null"); + validateNewDeleteFile(file); add(new PendingDeleteFile(file)); } /** Add a delete file to the new snapshot. */ protected void add(DeleteFile file, long dataSequenceNumber) { - Preconditions.checkNotNull(file, "Invalid delete file: null"); + validateNewDeleteFile(file); Review Comment: I'm not quite clear if there's a case if a manifest rewrite could cause an issue here. Is it possible that just rewriting delete manifests as part of incremental maintenance would hit the table version check? I don't feel like we can require delete file rewrite as part of that. -- 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