jerqi commented on code in PR #9787:
URL: https://github.com/apache/gravitino/pull/9787#discussion_r2723454256


##########
core/src/main/java/org/apache/gravitino/utils/MetadataObjectUtil.java:
##########
@@ -201,6 +202,15 @@ public static void checkMetadataObject(String metalake, 
MetadataObject object) {
         check(env.modelDispatcher().modelExists(identifier), 
exceptionToThrowSupplier);
         break;
 
+      case VIEW:
+        NameIdentifierUtil.checkView(identifier);
+        try {
+          env.viewDispatcher().loadView(identifier);

Review Comment:
   We can add a method `viewExists` here.



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