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


##########
lance/lance-rest-server/src/main/java/org/apache/gravitino/lance/service/rest/LanceTableOperations.java:
##########
@@ -176,11 +195,34 @@ public Response deregisterTable(
       @Context HttpHeaders headers,
       DeregisterTableRequest deregisterTableRequest) {
     try {
+      validateDeregisterTableRequest(deregisterTableRequest);
       DeregisterTableResponse response =
           lanceNamespace.asTableOps().deregisterTable(tableId, delimiter);
       return Response.ok(response).build();
     } catch (Exception e) {
       return LanceExceptionMapper.toRESTResponse(tableId, e);
     }
   }
+
+  private void validateCreateEmptyTableRequest(CreateEmptyTableRequest 
request) {
+    Preconditions.checkArgument(
+        StringUtils.isNotBlank(request.getLocation()), "Table location must be 
provided.");

Review Comment:
   I wonder if the location is null. How do we determine the location?



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