rdsr commented on a change in pull request #139: ORC support integration for 
Spark 2.4.0
URL: https://github.com/apache/incubator-iceberg/pull/139#discussion_r280780067
 
 

 ##########
 File path: orc/src/main/java/org/apache/iceberg/orc/ORC.java
 ##########
 @@ -65,15 +69,26 @@ public WriteBuilder config(String property, String value) {
       return this;
     }
 
+    public WriteBuilder createWriterFunc(Function<TypeDescription, 
OrcValueWriter<?>> writerFunction) {
+      this.createWriterFunc = writerFunction;
+      return this;
+    }
+
+    public WriteBuilder setAll(Map<String, String> properties) {
+      properties.forEach(conf::set);
+      return this;
+    }
+
     public WriteBuilder schema(Schema schema) {
       this.schema = schema;
       return this;
     }
 
-    public OrcFileAppender build() {
-      OrcFile.WriterOptions options =
-          OrcFile.writerOptions(conf);
-      return new OrcFileAppender(schema, file, options, metadata);
+    public <D> FileAppender<D> build() {
 
 Review comment:
   @rdblue I think Avro and Parquet stores Iceberg schema as a json string in 
their metadata properties. I'm not sure why that is required, do u think that 
it makes sense to do that here as well for ORC?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to