yiguolei commented on code in PR #2721: URL: https://github.com/apache/doris-website/pull/2721#discussion_r2293407703
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-avg.md: ########## @@ -5,57 +5,157 @@ } --- +## array_avg + +<version since="2.0.0"> + +</version> + ## 描述 -返回数组中所有元素的平均值,数组中的`NULL`值会被跳过。空数组以及元素全为`NULL`值的数组,结果返回`NULL`值。 +计算数组中所有数值元素的平均值。函数会跳过数组中的 null 值和非数值元素,只对有效的数值元素进行平均值计算。 Review Comment: 为什么不是都是数字? 对于非数字的要么fe 隐式类型转换,要么报错? -- 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]
