private static TestTable upgrade(File temp, String name, int newFormatVersion) {
        TestTable table = load(temp, name);
        TableOperations ops = table.ops();
        TableMetadata base = ops.current();
        ops.commit(base, ops.current().upgradeToFormatVersion(newFormatVersion));
        return table;
    }
Copy from iceberg-flink:iceberg-flink-1.15:1.1.x
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/iceberg/src/test/java/org/apache/inlong/sort/iceberg/sink/util/TestTables.java