theoryxu commented on code in PR #5733:
URL: https://github.com/apache/gravitino/pull/5733#discussion_r1871182919


##########
authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerMetadataObject.java:
##########
@@ -112,12 +112,12 @@ public void validateAuthorizationMetadataObject() throws 
IllegalArgumentExceptio
         type != null, "Cannot create a Ranger metadata object with no type");
 
     Preconditions.checkArgument(
-        names.size() != 1 || type == RangerMetadataObject.Type.SCHEMA,
-        "If the length of names is 1, it must be the SCHEMA type");
+        names.size() != 1 || type == RangerMetadataObject.Type.SCHEMA || type 
== Type.PATH,
+        "If the length of names is 1, it must be the SCHEMA type of PATH 
type");
 
     Preconditions.checkArgument(
-        names.size() != 2 || type == RangerMetadataObject.Type.TABLE || type 
== Type.PATH,
-        "If the length of names is 2, it must be the TABLE type of PATH type");
+        names.size() != 2 || type == RangerMetadataObject.Type.TABLE,
+        "If the length of names is 2, it must be the TABLE type");

Review Comment:
   done



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