Github user viirya commented on the issue:
https://github.com/apache/spark/pull/13371
@yhuai I've run a simple benchmark as following:
test("Benchmark for Parquet") {
val N = 1 << 20
val benchmark = new Benchmark("Parquet reader", N)
benchmark.addCase("reading Parquet file", 1) { iter =>
withParquetTable((0 until N).map(i => (101, i)), "t") {
sql("SELECT _1 FROM t where t._1 < 100").show()
}
}
benchmark.run()
}
Before this patch:
Parquet reader: Best/Avg Time(ms) Rate(M/s)
Per Row(ns) Relative
------------------------------------------------------------------------------------------------
reading Parquet file 34225 / 34225 0.0
32639.5 1.0X
After this patch:
Parquet reader: Best/Avg Time(ms) Rate(M/s)
Per Row(ns) Relative
------------------------------------------------------------------------------------------------
reading Parquet file 31350 / 31350 0.0
29897.6 1.0X
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]