yuqi1129 commented on code in PR #9127:
URL: https://github.com/apache/gravitino/pull/9127#discussion_r2672185340


##########
lance/lance-rest-server/src/main/java/org/apache/gravitino/lance/service/rest/LanceTableOperations.java:
##########
@@ -268,4 +316,14 @@ private void 
validateDropTableRequest(@SuppressWarnings("unused") DropTableReque
     // We will ignore the id in the request body since it's already provided 
in the path param
     // No specific fields to validate for now
   }
+
+  private void validateDropColumnsRequest(AlterTableDropColumnsRequest 
request) {
+    Preconditions.checkArgument(
+        !request.getColumns().isEmpty(), "Columns to drop cannot be empty.");
+  }
+
+  private void validateAlterColumnsRequest(AlterTableAlterColumnsRequest 
request) {
+    Preconditions.checkArgument(
+        !request.getAlterations().isEmpty(), "Columns to alter cannot be 
empty.");

Review Comment:
   ditto



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