bbiiaaoo commented on code in PR #10637:
URL: https://github.com/apache/gravitino/pull/10637#discussion_r3042699883


##########
lance/lance-rest-server/src/test/java/org/apache/gravitino/lance/service/rest/TestLanceNamespaceOperations.java:
##########
@@ -749,9 +730,7 @@ void testDropTable() {
     Assertions.assertEquals(dropTableResponse.getLocation(), 
response.getLocation());
 
     // test throw exception
-    doThrow(
-            LanceNamespaceException.notFound(
-                "Table not found", "NoSuchTableException", tableIds, ""))
+    doThrow(new org.lance.namespace.errors.TableNotFoundException("Table not 
found", "", tableIds))
         .when(tableOps)
         .dropTable(any(), any());

Review Comment:
   Fixed



##########
lance/lance-rest-server/src/test/java/org/apache/gravitino/lance/service/rest/TestLanceNamespaceOperations.java:
##########
@@ -850,8 +826,7 @@ void testDropColumns() {
     Mockito.reset(tableOps);
     when(tableOps.alterTable(any(), any(), 
any(AlterTableDropColumnsRequest.class)))
         .thenThrow(
-            LanceNamespaceException.notFound(
-                "Table not found", "NoSuchTableException", tableIds, ""));
+            new org.lance.namespace.errors.TableNotFoundException("Table not 
found", "", tableIds));
     resp =

Review Comment:
   Fixed



##########
lance/lance-rest-server/src/test/java/org/apache/gravitino/lance/service/rest/TestLanceNamespaceOperations.java:
##########
@@ -903,8 +878,7 @@ void testAlterColumns() {
     Mockito.reset(tableOps);
     when(tableOps.alterTable(any(), any(), 
any(AlterTableAlterColumnsRequest.class)))
         .thenThrow(
-            LanceNamespaceException.notFound(
-                "Table not found", "NoSuchTableException", tableIds, ""));
+            new org.lance.namespace.errors.TableNotFoundException("Table not 
found", "", tableIds));
     resp =

Review Comment:
   Fixed



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