code: private boolean isReadable(String namespace, String name) {
      Table table = getMetaStoreUtil().getTable(namespace, name);
      if (isManaged(table) || isExternal(table)) { // readable table types
        try {
          // get a descriptor for the table. if this succeeds, it is readable
          HiveUtils.descriptorForTable(conf, table);
          return true;
        } catch (DatasetException e) {
          // not a readable table
        } catch (IllegalStateException e) {
          // not a readable table
        } catch (IllegalArgumentException e) {
          // not a readable table
        } catch (UnsupportedOperationException e) {
          // not a readable table
        }
      }
      return false;
    }
docs: Returns true if the given table exists and can be read by this library.
  
  @param namespace a Hive database name
  @param name a table name
  @return {@code true} if the table exists and is supported