lasdf1234 commented on code in PR #11809:
URL: https://github.com/apache/gravitino/pull/11809#discussion_r3498266538
##########
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:
Got. Use EntityStore to check if table exists.
--
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]