Peng-Lei opened a new pull request #34257:
URL: https://github.com/apache/spark/pull/34257


   ### What changes were proposed in this pull request?
   1. support div(YearMonthIntervalType, YearMonthIntervalType), return long 
result
   2. support div(DayTimeIntervalType, DayTimeIntervalType), return long result
   3. if input is NULL or input2 is 0, then return null
   
   ### Why are the changes needed?
   Extended the div function to support ANSI intervals. The operation should 
produce quotient of division.
   [SPARK-36921](https://issues.apache.org/jira/browse/SPARK-36921)
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, user can use user can use YearMonthIntervalType and DayTimeIntervalType 
as input for div function.
   
   ### 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]

Reply via email to