roryqi commented on code in PR #10586:
URL: https://github.com/apache/gravitino/pull/10586#discussion_r3043132869


##########
iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java:
##########
@@ -239,7 +265,7 @@ public LoadTableResponse updateTable(
     metadataCache.invalidate(tableIdentifier);
     LoadTableResponse loadTableResponse =
         CatalogHandlers.updateTable(catalog, tableIdentifier, 
updateTableRequest);
-    if (loadTableResponse != null) {
+    if (loadTableResponse != null && !(catalog instanceof RESTCatalog)) {

Review Comment:
   I override the method `updateTable` in the `CatalogWrapperForREST`
   ```
     @Override
     public LoadTableResponse updateTable(
         TableIdentifier tableIdentifier, UpdateTableRequest 
updateTableRequest) {
       if (catalog instanceof RESTCatalog) {
         return CatalogHandlers.updateTable(catalog, tableIdentifier, 
updateTableRequest);
       } else {
         return super.updateTable(tableIdentifier, updateTableRequest);
       }
     }
   ```



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