Abyss-lord commented on code in PR #6104:
URL: https://github.com/apache/gravitino/pull/6104#discussion_r1903516865


##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/SetCatalogProperty.java:
##########
@@ -74,4 +74,12 @@ public void handle() {
 
     System.out.println(catalog + " property set.");
   }
+
+  @Override
+  public Command validate() {
+    if (property == null && value == null) exitWithError("Missing --property 
and --value options.");
+    if (property == null) exitWithError(ErrorMessages.MISSING_PROPERTY);
+    if (value == null) exitWithError(ErrorMessages.MISSING_VALUE);
+    return this;
+  }

Review Comment:
   @justinmclean hi Justin , IMHO, The code does not contain duplication; 
Metalake and Catalog are distinct entities and cannot be combined for handling 
`setProperty`.



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