HyukjinKwon commented on pull request #28754: URL: https://github.com/apache/spark/pull/28754#issuecomment-671135969
BTW, looks like most of DBMSes don't allow this. I checked quickly and seems ANSI doesn't allow this as well: > If AVG is specified and DT is exact numeric, then the declared type of the result is an implementation-defined exact numeric type with precision not less than the precision of DT and scale not less than the scale of DT. ---------------------------------------------------------------- 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]
