Skip to content

Commit

Permalink
[SPARK-48025][SQL][TESTS] Fix org.apache.spark.sql.execution.benchmar…
Browse files Browse the repository at this point in the history
…k.DateTimeBenchmark

### What changes were proposed in this pull request?

This PR fixes several issues in org.apache.spark.sql.execution.benchmark.DateTimeBenchmark
- Misuse `trunc` function, a.k.a, the parameter order is wrong in reverse order
- Some benchmarks not compatible with ANSI by default

### Why are the changes needed?

restore benchmark cases

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

benchmark

### Was this patch authored or co-authored using generative AI tooling?
no

Closes apache#46261 from yaooqinn/SPARK-48025.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
  • Loading branch information
yaooqinn committed Apr 28, 2024
1 parent 657d9d0 commit 0bf3945
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 376 deletions.
Loading

0 comments on commit 0bf3945

Please sign in to comment.