msamirkhan commented on a change in pull request #29354: URL: https://github.com/apache/spark/pull/29354#discussion_r465980330
########## File path: external/avro/src/main/scala/org/apache/spark/sql/avro/AvroOutputWriterFactory.scala ########## @@ -40,6 +40,8 @@ private[sql] class AvroOutputWriterFactory( path: String, dataSchema: StructType, context: TaskAttemptContext): OutputWriter = { + context.getConfiguration.set("avro.serialization.data.model", + "org.apache.avro.generic.GenericData") Review comment: This is a simple change to use GenericDatumReader in the avro lib instead of the ReflectDatumReader (which is the default). Write time improvements are in the attached pdf, pg 3 under column A. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org