HyukjinKwon commented on a change in pull request #26175:
[SPARK-29518][SQL][TEST] Benchmark `date_part` for `INTERVAL`
URL: https://github.com/apache/spark/pull/26175#discussion_r336954792
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/ExtractBenchmark.scala
##########
@@ -84,24 +86,36 @@ object ExtractBenchmark extends SqlBasedBenchmark {
}
}
+ private case class Settings(fields: Seq[String], func: Seq[String], iterNum:
Long)
+
override def runBenchmarkSuite(mainArgs: Array[String]): Unit = {
val N = 10000000L
- val fields = Seq(
+ val datetimeFields = Seq(
"MILLENNIUM", "CENTURY", "DECADE", "YEAR",
"ISOYEAR", "QUARTER", "MONTH", "WEEK",
"DAY", "DAYOFWEEK", "DOW", "ISODOW",
"DOY", "HOUR", "MINUTE", "SECOND",
"MILLISECONDS", "MICROSECONDS", "EPOCH")
+ val intervalFields = Seq(
+ "MILLENNIUM", "CENTURY", "DECADE", "YEAR",
+ "QUARTER", "MONTH", "DAY",
+ "HOUR", "MINUTE", "SECOND",
+ "MILLISECONDS", "MICROSECONDS", "EPOCH")
+ val settings = Map(
Review comment:
yup, I was thinking like that. I don't mind if you prefer the current way.
no biggie.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]