Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-35729][SQL][TESTS] Check all day-time interval types in aggreg…
…ate expressions ### What changes were proposed in this pull request? This PR adds test to check `sum` and `avg` works with all the `DayTimeIntervalType`. This PR also moves a dataframe commonly used by tests `SPARK-34837: Support ANSI SQL intervals by the aggregate function avg` and `SPARK-34716: Support ANSI SQL intervals by the aggregate function sum` to `SQLTestData.scala`, and a little bit modifies it. ### Why are the changes needed? To ensure the results of aggregations are what is expected. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? New test. Closes #33042 from sarutak/check-interval-agg-dt. Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
- Loading branch information
Showing
2 changed files
with
327 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.