BiteTheDDDDt commented on code in PR #2670: URL: https://github.com/apache/doris-website/pull/2670#discussion_r2235648222
########## docs/sql-manual/sql-functions/aggregate-functions/avg.md: ########## @@ -25,29 +25,97 @@ AVG([DISTINCT] <expr>) ## Return Value Returns the average value of the selected column or expression. If all records in the group are NULL, the function returns NULL. +For decimal type input, return value will be decimal as well, other numric type will return double type. ## Example Review Comment: 像string目前应该只会往double转,不会往int转。 整体各种类型函数入参cast规则应该还比较复杂,可能得专门有一个单独的文档然后link过去,每个函数里去重复描述这个复杂规则不太合适。 -- 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]
