You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/07/27 13:57:38 UTC

[GitHub] [incubator-iceberg] arina-ielchiieva commented on a change in pull request #318: Synchronize write mode among writers

arina-ielchiieva commented on a change in pull request #318: Synchronize write mode among writers
URL: https://github.com/apache/incubator-iceberg/pull/318#discussion_r307965937
 
 

 ##########
 File path: core/src/main/java/org/apache/iceberg/avro/AvroFileAppender.java
 ##########
 @@ -40,7 +40,7 @@
   AvroFileAppender(Schema schema, OutputFile file,
                    Function<Schema, DatumWriter<?>> createWriterFunc,
                    CodecFactory codec, Map<String, String> metadata) throws IOException {
-    this.stream = file.create();
+    this.stream = file.createOrOverwrite();
 
 Review comment:
   Moved it to Avro class and made configurable.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org