public static DataFile writeFile(
            Table table,
            Schema schema,
            PartitionSpec spec,
            Configuration conf,
            String location,
            String filename,
            List<RowData> rows)
            throws IOException {
        return writeFile(table, schema, spec, conf, location, filename, rows, null);
    }
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/SimpleDataUtil.java