public static boolean checkExist(HMSClientPool hiveClient, TableIdentifier tableIdentifier) {
    String database = tableIdentifier.getDatabase();
    String name = tableIdentifier.getTableName();
    try {
      hiveClient.run(client -> client.getTable(database, name));
      return true;
    } catch (NoSuchObjectException e) {
      return false;
    } catch (TException e) {
      throw new RuntimeException("Failed to get table " + name, e);
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
      throw new RuntimeException("Interrupted in call to rename", e);
    }
  }
Check whether the table is in Hive.

@param hiveClient Hive client from MixedHiveCatalog
@param tableIdentifier A table identifier
@return If table is existed in hive
amoro-format-mixed/amoro-mixed-hive/src/main/java/org/apache/amoro/hive/utils/HiveTableUtil.java