rdblue commented on code in PR #19030:
URL: https://github.com/apache/iceberg/pull/19030#discussion_r4645317017


##########
core/src/main/java/org/apache/iceberg/MergingSnapshotProducer.java:
##########
@@ -1025,6 +1100,39 @@ private void validateDeleteFilesForVersion(int 
currentFormatVersion) {
     }
   }
 
+  @Override
+  protected NewSnapshotMetadata writeRootManifest(
+      TableMetadata base, Snapshot parent, long sequenceNumber) {
+    validateDeleteFilesForVersion(base.formatVersion());
+
+    if (addsDeleteFiles()) {
+      throw new UnsupportedOperationException("Cannot commit new delete files 
to v4 table");
+    } else if (filterManager.containsDeletes()) {
+      throw new UnsupportedOperationException("Cannot commit deleted data 
files to v4");
+    } else if (deleteFilterManager.containsDeletes()) {
+      throw new UnsupportedOperationException("Cannot commit deleted delete 
files to v4");
+    }
+
+    if (rootManifestProducer == null || hasNewDataFiles) {

Review Comment:
   There is not much reuse right now because the root producer doesn't create 
leaf manifests yet. Right now, this just reuses the commit UUID that is 
generated.



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