Peng-Lei opened a new pull request #32999: URL: https://github.com/apache/spark/pull/32999
What changes were proposed in this pull request? Change the return value type from DayTimeIntervalType(DAY, SECOND) to DayTimeIntervalType(DAY, DAY) of SubtractDates DayTimeIntervalType(DAY, DAY) means that number of microseconds can be divisible by MICROS_PER_DAY DateTime + DayTimeIntervalType(DAY, DAY), It will not convert DateTime to TimestampType, It will use DateTime - DateTime, then convert the result to DateTime. It is same with DayTimeIntervalType(DAY, DAY) + DateTime. DateTime - DayTimeIntervalType(DAY, DAY), It will not convert DateTime to TimestampType, It will use DateTime - DateTime, then convert the result to DateTime, It will not convert DateTime to TimestampType, It will use DateTime - DateTime, then convert the result to DateTime. Why are the changes needed? https://issues.apache.org/jira/browse/SPARK-35727 Does this PR introduce any user-facing change? no How was this patch tested? existed 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
