pvary commented on code in PR #17706:
URL: https://github.com/apache/iceberg/pull/17706#discussion_r3801994461


##########
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/source/SparkPositionDeletesRewrite.java:
##########
@@ -230,28 +227,15 @@ public DataWriter<InternalRow> createWriter(int 
partitionId, long taskId) {
       if (formatVersion >= 3) {
         return new DVWriter(table, deleteFileFactory, dsSchema, specId, 
partition);
       } else {
-        Schema positionDeleteRowSchema = positionDeleteRowSchema();
-        StructType deleteSparkType = deleteSparkType();
-        StructType deleteSparkTypeWithoutRow = deleteSparkTypeWithoutRow();
-
-        SparkFileWriterFactory writerFactoryWithRow =
-            SparkFileWriterFactory.builderFor(table)
-                .deleteFileFormat(format)
-                .positionDeleteRowSchema(positionDeleteRowSchema)
-                .positionDeleteSparkType(deleteSparkType)
-                .writeProperties(writeProperties)
-                .build();
-        SparkFileWriterFactory writerFactoryWithoutRow =
+        SparkFileWriterFactory writerFactory =

Review Comment:
   Could we add to the class javadoc, that if there is row-data in the position 
deletes then it will be removed after the rewrite?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to