Peng-Lei opened a new pull request #33132: URL: https://github.com/apache/spark/pull/33132
### What changes were proposed in this pull request? 1. The function `width_bucket` is introduced from [SPARK-21117](https://issues.apache.org/jira/browse/SPARK-21117) 2. The YearMonthIntervalType is just store the value with Int. 3. Modify the `inputType` to allow the width_bucket to support the YearMonthIntervalType ### Why are the changes needed? [35926](https://issues.apache.org/jira/browse/SPARK-35926) ### Does this PR introduce _any_ user-facing change? Yes. The user can use `width_bucket` with Period type. ### How was this patch tested? Add ut test -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
