Skip to content

Commit 6016575

Browse files
yaooqinncloud-fan
authored andcommitted
[SPARK-31527][SQL][TESTS][FOLLOWUP] Add a benchmark test for datetime add/subtract interval operations
### What changes were proposed in this pull request? With #28310, the operation of date +/- interval(m, d, 0) has been improved a lot. According to the benchmark results, about 75% time cost is reduced because of no casting date to timestamp back and forth. In this PR, we add a benchmark for these operations, and timestamp +/- interval operations as accessories. ### Why are the changes needed? Performance test coverage, since these operations are missing in the DateTimeBenchmark. ### Does this PR introduce any user-facing change? No, just test ### How was this patch tested? regenerated benchmark results Closes #28369 from yaooqinn/SPARK-31527-F. Authored-by: Kent Yao <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 54996be) Signed-off-by: Wenchen Fan <[email protected]>
1 parent efe700c commit 6016575

File tree

3 files changed

+532
-446
lines changed

3 files changed

+532
-446
lines changed

0 commit comments

Comments
 (0)