xiaozcy commented on code in PR #7502:
URL: https://github.com/apache/gravitino/pull/7502#discussion_r2176311950


##########
core/src/main/java/org/apache/gravitino/meta/ModelVersionEntity.java:
##########
@@ -133,6 +134,13 @@ public Long id() {
     throw new UnsupportedOperationException("Model version entity does not 
have an ID.");
   }
 
+  @Override
+  public void validate() throws IllegalArgumentException {
+    Entity.super.validate();
+    Preconditions.checkArgument(
+        !uris.isEmpty(), "The uri of the model version entity must not be 
empty.");

Review Comment:
   A model version must have one URI at least.



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

Reply via email to