rdblue commented on code in PR #8831: URL: https://github.com/apache/iceberg/pull/8831#discussion_r1417668998
########## core/src/main/java/org/apache/iceberg/UpdateRequirement.java: ########## @@ -62,12 +62,31 @@ public void validate(TableMetadata base) { "Requirement failed: UUID does not match: expected %s != %s", base.uuid(), uuid); } } + } + + class AssertViewUUID implements UpdateRequirement { + private final String uuid; + + public AssertViewUUID(String uuid) { + Preconditions.checkArgument(uuid != null, "Invalid required UUID: null"); + this.uuid = uuid; + } + + public String uuid() { + return uuid; + } + + @Override + public void validate(TableMetadata base) { + throw new ValidationException( + "Cannot validate %s against a table", this.getClass().getSimpleName()); Review Comment: Isn't this in the base class? -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org