forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-35925][SQL] Support DayTimeIntervalType in width-bucket function
### What changes were proposed in this pull request? Add support DayTimeIntervalType for width_bucket function. ### Why are the changes needed? [SPARK-35925](https://issues.apache.org/jira/browse/SPARK-35925) 1. The `WIDTH_BUCKET` function assigns values to buckets (individual segments) in an equiwidth histogram. 2. DayTimeIntervalType is necessary as an input data type for `WIDTH_BUCKET` ### Does this PR introduce _any_ user-facing change? Yes. The user can use `width_bucket` with DayTimeIntervalType. ### How was this patch tested? Add ut test Closes apache#34309 from Peng-Lei/SPARK-35925. Authored-by: PengLei <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information
Showing
5 changed files
with
65 additions
and
5 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
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
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
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
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