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


##########
core/src/main/java/org/apache/iceberg/DVUtil.java:
##########
@@ -52,6 +52,7 @@ static PositionDeleteIndex readDV(DeleteFile deleteFile, 
FileIO fileIO) {
         ContentFileUtil.isDV(deleteFile),
         "Cannot read, not a deletion vector: %s",
         deleteFile.location());
+    ContentFileUtil.validateDV(deleteFile);

Review Comment:
   Since this class already handles `DeleteFile` instances, I'd probably not 
modify `ContentFileUtil` and put the new method here. People aren't going to go 
looking for a DV validation method in `ContentFileUtil`.



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