[ 
https://issues.apache.org/jira/browse/FLINK-31310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696460#comment-17696460
 ] 

Nicholas Jiang commented on FLINK-31310:
----------------------------------------

[~lzljs3620320], the `dropTable` interface is invoked after `getTable`, 
therefore if no tale in hive, the `dropTable` could not be invoked, because 
there is a check whether table exist in `getDataTableSchema`. IMO, when no 
table in hive, users could use the FileSystemCatalog to drop the table and 
clear table directory and HiveCatalog only drops the table in Hive and clear 
table directory via hive metastore client.

> Force clear directory no matter what situation in HiveCatalog.dropTable
> -----------------------------------------------------------------------
>
>                 Key: FLINK-31310
>                 URL: https://issues.apache.org/jira/browse/FLINK-31310
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table Store
>            Reporter: Jingsong Lee
>            Assignee: Nicholas Jiang
>            Priority: Major
>             Fix For: table-store-0.4.0
>
>
> Currently, if no table in hive, will not clear the table.
> We should clear table directory in any situation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to