pvary commented on a change in pull request #3250:
URL: https://github.com/apache/iceberg/pull/3250#discussion_r730739842



##########
File path: orc/src/main/java/org/apache/iceberg/data/orc/GenericOrcWriters.java
##########
@@ -138,6 +146,15 @@ private GenericOrcWriters() {
     return new MapWriter<>(key, value);
   }
 
+  public static <T> OrcRowWriter<PositionDelete<T>> 
positionDelete(OrcRowWriter<T> writer,
+      Function<CharSequence, ?> pathTransformFunc) {
+    return new PositionDeleteStructWriter(writer, pathTransformFunc);

Review comment:
       Done (My IntelliJ does not complain, but fixed it anyway)

##########
File path: 
spark/src/main/java/org/apache/iceberg/spark/source/SparkFileWriterFactory.java
##########
@@ -110,6 +110,17 @@ protected void configureDataWrite(ORC.DataWriteBuilder 
builder) {
     builder.createWriterFunc(SparkOrcWriter::new);
   }
 
+  @Override
+  protected void configureEqualityDelete(ORC.DeleteWriteBuilder builder) {
+    builder.createWriterFunc((iSchema, typDesc) -> new SparkOrcWriter(iSchema, 
typDesc));
+  }
+
+  @Override
+  protected void configurePositionDelete(ORC.DeleteWriteBuilder builder) {
+    builder.createWriterFunc((iSchema, typDesc) -> new SparkOrcWriter(iSchema, 
typDesc));

Review comment:
       Done

##########
File path: 
spark/src/main/java/org/apache/iceberg/spark/source/SparkFileWriterFactory.java
##########
@@ -110,6 +110,17 @@ protected void configureDataWrite(ORC.DataWriteBuilder 
builder) {
     builder.createWriterFunc(SparkOrcWriter::new);
   }
 
+  @Override
+  protected void configureEqualityDelete(ORC.DeleteWriteBuilder builder) {
+    builder.createWriterFunc((iSchema, typDesc) -> new SparkOrcWriter(iSchema, 
typDesc));

Review comment:
       Done




-- 
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