[ https://issues.apache.org/jira/browse/HIVE-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153202#comment-13153202 ]
Ashutosh Chauhan commented on HIVE-2542: ---------------------------------------- Correct way to do this is to improve HiveMetaHook interface. We need to add all the methods corresponding to database in the interface, like preCreateDatabase, preDropDatabase etc. and call them before doing the operations from the client. The way its done in dropTable()/createTable() of the metastoreclient. > DROP DATABASE CASCADE does not drop non-native tables. > ------------------------------------------------------- > > Key: HIVE-2542 > URL: https://issues.apache.org/jira/browse/HIVE-2542 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Vandana Ayyalasomayajula > Labels: handler, hive, metastore, storage > Attachments: Hive-2542.patch > > > The hive meta store client does not delete the non-native tables during the > drop database <dbname> cascade operation. As a result even though the > database is deleted the tables still exist. This is related to HCATALOG-144. > A deeper look at the HiveMetaStoreClient's "dropDatabase" function, tells us > that the function does not utilize the hive meta hooks of the tables in the > database for dropping the non-native tables. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira