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


##########
iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/dispatcher/IcebergNamespaceHookDispatcher.java:
##########
@@ -183,6 +183,21 @@ public LoadTableResponse registerTable(
       RegisterTableRequest registerTableRequest) {
     LoadTableResponse response = dispatcher.registerTable(context, namespace, 
registerTableRequest);
 
+    if (registerTableRequest.overwrite()) {
+      TableDispatcher tableDispatcher = 
GravitinoEnv.getInstance().internalTableDispatcher();
+      if (tableDispatcher != null

Review Comment:
   Could u avoid using tableDispatcher? You can use Iceberg related classes.
   `exists` will always return `true`.



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