stevenzwu commented on code in PR #18418:
URL: https://github.com/apache/iceberg/pull/18418#discussion_r4233331510
##########
core/src/main/java/org/apache/iceberg/ManifestInfoStruct.java:
##########
@@ -376,6 +393,13 @@ Builder dv(ByteBuffer buffer) {
return this;
}
+ Builder formatVersion(int version) {
+ Preconditions.checkArgument(
+ version == 0 || version == 4, "Invalid format version: %s (must be 0
or 4)", version);
Review Comment:
+1. having `>= 4` is one less thing to worry about in the future.
it might also be good to introduce some public util like
`isValidManifestFormatVersion` to consolidate this check.
--
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]