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


##########
core/src/main/java/org/apache/gravitino/catalog/TableOperationDispatcher.java:
##########
@@ -420,6 +432,17 @@ public boolean purgeTable(NameIdentifier ident) throws 
UnsupportedOperationExcep
           } catch (Exception e) {
             throw new RuntimeException(e);
           }
+          if (droppedFromCatalog) {
+            SchemaEntityCleaner.deleteOrphanedSchemaEntities(
+                store,
+                schemaIdentifier,
+                true,
+                schemaIdent ->
+                    doWithCatalog(
+                        catalogIdent,
+                        c -> c.doWithSchemaOps(s -> 
s.schemaExists(schemaIdent)),
+                        RuntimeException.class));

Review Comment:
   Iceberg doesn't support the similar operation now. But this improvement is 
discussing. Maybe we can optimize this point in the feature.



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