rdblue commented on code in PR #8147:
URL: https://github.com/apache/iceberg/pull/8147#discussion_r1274223494
##########
core/src/main/java/org/apache/iceberg/UpdateRequirement.java:
##########
@@ -199,4 +220,56 @@ public void validate(TableMetadata base) {
}
}
}
+
+ class AssertLastAssignedViewVersionId implements UpdateRequirement {
Review Comment:
What is the purpose of this validation?
For tables, we have situations where we need to assign a new ID, like
`AddSchema`. In those cases, we let the service assign the ID instead of
sending one so that we don't need to assert that the previous set of IDs had
some maximum that we incremented. Instead, the service assigns the ID and the
`SetCurrentSchema` change is sent with a `-1` to use the last assigned ID.
--
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]