Skip to content

Commit

Permalink
[avro] Do not flush on every block for DataFileWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Aug 5, 2024
1 parent 2d94053 commit 615370e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private RowAvroWriterFactory(RowType rowType) {
new DataFileWriter<>(datumWriter);
dataFileWriter.setCodec(createCodecFactory(compression));
dataFileWriter.create(schema, out);
dataFileWriter.setFlushOnEveryBlock(false);
return dataFileWriter;
});
}
Expand Down

0 comments on commit 615370e

Please sign in to comment.