You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2018/02/13 19:37:00 UTC

[jira] [Created] (HIVE-18707) Dropping database via HiveMetastoreClient involves useless work

Alexander Kolbasov created HIVE-18707:
-----------------------------------------

             Summary: Dropping database via HiveMetastoreClient involves useless work
                 Key: HIVE-18707
                 URL: https://issues.apache.org/jira/browse/HIVE-18707
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 3.0.0, 2.3.3
            Reporter: Alexander Kolbasov
            Assignee: Alexander Kolbasov


HiveMetastoreClient has dropDatabase() method which does this:

 
{code:java}
if (cascade) {
   List<String> tableList = getAllTables(name);
   for (String table : tableList) {
     try {
       // Subclasses can override this step (for example, for temporary tables)
       dropTable(name, table, deleteData, true);
     } catch (UnsupportedOperationException e) {
       // Ignore Index tables, those will be dropped with parent tables
     }
    }
}{code}
This isn't needed since the similar thing is done on the server side and just wastes time in sending multiple server calls.

 

[~pvary] [~alangates] FYI.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)