FangYongs commented on code in PR #772:
URL: https://github.com/apache/incubator-paimon/pull/772#discussion_r1159302221


##########
paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java:
##########
@@ -208,6 +208,16 @@ public void dropTable(Identifier identifier, boolean 
ignoreIfNotExists)
                     identifier.getDatabaseName(), identifier.getObjectName(), 
true, false, true);
         } catch (TException e) {
             throw new RuntimeException("Failed to drop table " + 
identifier.getFullName(), e);
+        } finally {
+            // Deletes table directory to avoid schema in filesystem exists.
+            Path path = getDataTableLocation(identifier);
+            try {
+                if (fileIO.exists(path)) {
+                    fileIO.deleteDirectoryQuietly(path);

Review Comment:
   Can we give more information in line 191? Users can still list tables if we 
delete files here. But when users query data from the table, there will be 
exception with message "There is no paimond in ...". Should we need to suggest 
users to drop the table again?



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