in paimon-web-api/src/main/java/org/apache/paimon/web/api/table/TableManager.java [137:148]
public static void renameTable(Catalog catalog, String dbName, String fromTable, String toTable)
throws Catalog.TableAlreadyExistException, Catalog.TableNotExistException {
ParameterValidationUtil.checkNotNull(
new SimpleEntry<>(catalog, () -> "Catalog"),
new SimpleEntry<>(dbName, () -> "Database name"),
new SimpleEntry<>(fromTable, () -> "From table name"),
new SimpleEntry<>(toTable, () -> "To table name"));
Identifier fromTableIdentifier = Identifier.create(dbName, fromTable);
Identifier toTableIdentifier = Identifier.create(dbName, toTable);
catalog.renameTable(fromTableIdentifier, toTableIdentifier, false);
}