presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/thrift/BridgingHiveMetastore.java/BridgingHiveMetastore/replaceTable
class BridgingHiveMetastore:    @Override
    public void replaceTable(HiveIdentity identity, String databaseName, String tableName, Table newTable, PrincipalPrivileges principalPrivileges)
    {
        alterTable(identity, databaseName, tableName, toMetastoreApiTable(newTable, principalPrivileges));
    }