You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/03/26 15:03:22 UTC
[GitHub] [hudi] xiarixiaoyao commented on pull request #5137: [HUDI-3719] High performance costs of AvroSerizlizer in DataSource wr…
xiarixiaoyao commented on pull request #5137:
URL: https://github.com/apache/hudi/pull/5137#issuecomment-1079711532
@xushiyan @YannByron @leesf @alexeykudinkin
could you pls help me review this pr, thanks
its a serious bug
before pacth: 295553 ms
after patch: 5279 ms
```
val dfx = spark.range(0, 50000000).toDF("id")
.withColumn("c1", lit("dsfsdfsafsasdfa"))
.withColumn("c2", lit(12.99d))
.withColumn("c3", lit(1))
val avroSchemax = AvroConversionUtils.convertStructTypeToAvroSchema(dfx.schema, "record", "my")
val sparkSchema = dfx.schema
spark.sparkContext.getConf.registerAvroSchemas(avroSchemax)
val testRDD = HoodieSparkUtils.createRdd(dfx,"record", "my", Some(avroSchemax))
// warm up
dfx.count()
spark.time(testRDD.foreach(f => f))
```
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org