Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18707

Dropping database via HiveMetastoreClient involves useless work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.3.3, 3.0.0
    • None
    • Metastore
    • None

    Description

      HiveMetastoreClient has dropDatabase() method which does this:

       

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

      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.

      Attachments

        Issue Links

          Activity

            People

              akolb Alex Kolbasov
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: