MaxGekk opened a new pull request #25462: [SPARK-28745][SQL] Add benchmarks for 
`extract()`
URL: https://github.com/apache/spark/pull/25462
 
 
   ## What changes were proposed in this pull request?
   
   Added new benchmark `ExtractBenchmark` for the `EXTRACT(field FROM source)` 
function. It was executed on all currently supported values of the `field` 
argument:  `MILLENNIUM`, `CENTURY`, `DECADE`, `YEAR`, `ISOYEAR`, `QUARTER`, 
`MONTH`, `WEEK`, `DAY`, `DAYOFWEEK`, `HOUR`, `MINUTE`, `SECOND`, 
`MILLISECONDS`, `MICROSECONDS`, `EPOCH`. The `cast(id as timestamp)` was taken 
as the `source` argument.
   
   ## How was this patch tested?
   
   By running the benchmark via:
   ```
   $ SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain 
org.apache.spark.sql.execution.benchmark.ExtractBenchmark"
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to