private ResultSet fetchTablesViaDBMetaData(String regex) throws SQLException {
    ResultSet rs = null;
    try {
      rs = getConnection().getMetaData().getTables(getCatalogName(), getDatabaseName(), regex, new String[]{"TABLE"});
    } catch (SQLException sqle) {
      LOG.warn("Could not retrieve tables from JDBC table, cause: {}", sqle.getMessage());
      throw sqle;
    }
    return rs;
  }
Fetch a single table with the given name, returns a Hive Table object from the remote database
@return Table A Table object for the matching table, null otherwise.
@throws MetaException To indicate any failures with executing this API
@param tableName
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/dataconnector/jdbc/AbstractJDBCConnectorProvider.java