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

        PositionDeleteWriter<RowData> posWriter =
                appenderFactory.newPosDeleteWriter(outputFile, format, null);
        PositionDelete<RowData> posDelete = PositionDelete.create();
        try (PositionDeleteWriter<RowData> writer = posWriter) {
            for (Pair<CharSequence, Long> p : positions) {
                writer.write(posDelete.set(p.first(), p.second(), null));
            }
        }
        return posWriter.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