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

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

     [ https://issues.apache.org/jira/browse/HIVE-18707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Kolbasov resolved HIVE-18707.
---------------------------------------
    Resolution: Duplicate

> 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
>            Priority: Major
>
> 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)