public static DeleteFile writeEqDeleteFile(
            Table table,
            FileFormat format,
            String filename,
            FileAppenderFactory<RowData> appenderFactory,
            List<RowData> deletes)
            throws IOException {
        EncryptedOutputFile outputFile =
                table
                        .encryption()
                        .encrypt(fromPath(new Path(table.location(), filename), new Configuration()));

        EqualityDeleteWriter<RowData> eqWriter =
                appenderFactory.newEqDeleteWriter(outputFile, format, null);
        try (EqualityDeleteWriter<RowData> writer = eqWriter) {
            writer.write(deletes);
        }
        return eqWriter.toDeleteFile();
    }
Write the list of {@link RowData} to the given path and with the given partition data
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/iceberg/src/test/java/org/apache/inlong/sort/iceberg/sink/util/SimpleDataUtil.java