public static void alterTableLocation(
      HMSClientPool hiveClient, TableIdentifier tableIdentifier, String newPath)
      throws IOException {
    try {
      hiveClient.run(
          client -> {
            Table newTable = loadHmsTable(hiveClient, tableIdentifier);
            newTable.getSd().setLocation(newPath);
            client.alterTable(
                tableIdentifier.getDatabase(), tableIdentifier.getTableName(), newTable);
            return null;
          });
    } catch (Exception e) {
      throw new IOException(e);
    }
  }
Change the location of the Hive table.

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