Peng-Lei opened a new pull request #34256: URL: https://github.com/apache/spark/pull/34256
### What changes were proposed in this pull request? 1. if value of AnsiIntervalType is 0, the sign/signum return 0.0 2. if value of AnsiIntervalType is negative, the sign/signum return -1.0 3. if value of AnsiIntervalType is positive, the sign/signum return 1.0 ### Why are the changes needed? [SPARK-36922](https://issues.apache.org/jira/browse/SPARK-36922) Extend the sign/signum functions to support ANSI intervals. ### Does this PR introduce _any_ user-facing change? Yes, user can use YearMonthIntervalType and DayTimeIntervalType as input for SIGN/SIGNUM funcitions. ### How was this patch tested? Add ut testcase -- 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]
