diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 4778bb6..166ebe8 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -960,27 +960,18 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException return result; } - /** {@inheritDoc} */ + /** {@inheritDoc} + * @throws TException */ @Override - public List getDatabases(String databasePattern) - throws MetaException { - try { - return filterHook.filterDatabases(client.get_databases(databasePattern)); - } catch (Exception e) { - MetaStoreUtils.logAndThrowMetaException(e); - } - return null; + public List getDatabases(String databasePattern) throws TException { + return filterHook.filterDatabases(client.get_databases(databasePattern)); } - /** {@inheritDoc} */ + /** {@inheritDoc} + * @throws TException */ @Override - public List getAllDatabases() throws MetaException { - try { - return filterHook.filterDatabases(client.get_all_databases()); - } catch (Exception e) { - MetaStoreUtils.logAndThrowMetaException(e); - } - return null; + public List getAllDatabases() throws TException { + return filterHook.filterDatabases(client.get_all_databases()); } /** @@ -1192,26 +1183,18 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE return deepCopy(client.get_type(name)); } - /** {@inheritDoc} */ + /** {@inheritDoc} + * @throws TException */ @Override - public List getTables(String dbname, String tablePattern) throws MetaException { - try { - return filterHook.filterTableNames(dbname, client.get_tables(dbname, tablePattern)); - } catch (Exception e) { - MetaStoreUtils.logAndThrowMetaException(e); - } - return null; + public List getTables(String dbname, String tablePattern) throws TException { + return filterHook.filterTableNames(dbname, client.get_tables(dbname, tablePattern)); } - /** {@inheritDoc} */ + /** {@inheritDoc} + * @throws TException */ @Override - public List getAllTables(String dbname) throws MetaException { - try { - return filterHook.filterTableNames(dbname, client.get_all_tables(dbname)); - } catch (Exception e) { - MetaStoreUtils.logAndThrowMetaException(e); - } - return null; + public List getAllTables(String dbname) throws TException { + return filterHook.filterTableNames(dbname, client.get_all_tables(dbname)); } @Override