beliefer opened a new pull request #32229:
URL: https://github.com/apache/spark/pull/32229


   ### What changes were proposed in this pull request?
   Extend the `Average` expression to support `DayTimeIntervalType` and 
`YearMonthIntervalType` added by #31614.
   
   Note: the expressions can throw the overflow exception independently from 
the SQL config `spark.sql.ansi.enabled`. In this way, the modified expressions 
always behave in the ANSI mode for the intervals.
   
   
   ### Why are the changes needed?
   Extend `org.apache.spark.sql.catalyst.expressions.aggregate.Average` to 
support `DayTimeIntervalType` and `YearMonthIntervalType`.
   
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   Should not since new types have not been released yet.
   
   
   ### How was this patch tested?
   Jenkins 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]

Reply via email to