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

HIVE-7575: GetTablesOperation is too slow if the hive has too many databases and tables

    XMLWordPrintableJSON

Details

    Description

      GetTablesOperation is too slow since it does not check for the authorization for databases and try pulling all the tables from all the databases using getTableMeta. for operation like follows

      
      con.getMetaData().getTables("", "", "%", new String[] \{ "TABLE", "VIEW" });
      
      

      build the getTableMeta call with wildcard *

      
       metastore.HiveMetaStore: 8: get_table_metas : db=* tbl=*
      
      

       

      Attachments

        1. HIVE-19432.patch
          3 kB
          Rajkumar Singh
        2. HIVE-19432.01.patch
          3 kB
          Rajkumar Singh
        3. HIVE-19432.01.patch
          3 kB
          Rajkumar Singh

        Activity

          People

            Rajkumar Singh Rajkumar Singh
            Rajkumar Singh Rajkumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m