ebyhr commented on code in PR #16092:
URL: https://github.com/apache/iceberg/pull/16092#discussion_r3134830328


##########
core/src/main/java/org/apache/iceberg/DeletionVectorStruct.java:
##########
@@ -41,6 +41,14 @@ class DeletionVectorStruct extends SupportsIndexProjection 
implements DeletionVe
     super(BASE_TYPE, type);
   }
 
+  DeletionVectorStruct(String location, long offset, long sizeInBytes, long 
cardinality) {
+    super(BASE_TYPE.fields().size());
+    this.location = location;
+    this.offset = offset;
+    this.sizeInBytes = sizeInBytes;
+    this.cardinality = cardinality;
+  }

Review Comment:
   Does it make sense to add a defensive check with 
`Preconditions.checkArgument` such as non-empty location? 



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