kevinjqliu commented on code in PR #11354:
URL: https://github.com/apache/iceberg/pull/11354#discussion_r1811248912
##########
core/src/main/java/org/apache/iceberg/SnapshotParser.java:
##########
@@ -140,6 +142,8 @@ static Snapshot fromJson(JsonNode node) {
}
}
summary = builder.build();
+ Preconditions.checkArgument(
Review Comment:
That works too. However, I prefer the precondition check and the error
message explaining that the operation must exist.
--
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]