Merge pull request #18792 from Bertrand31/patch-1

Fix typo in array functions' documentation
This commit is contained in:
alexey-milovidov 2021-01-06 20:58:41 +03:00 committed by GitHub
commit d76c05e134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1308,7 +1308,7 @@ Note that the `arraySum` is a [higher-order function](../../sql-reference/functi
## arrayAvg(\[func,\] arr1, …) {#array-avg}
Returns the sum of the `func` values. If the function is omitted, it just returns the average of the array elements.
Returns the average of the `func` values. If the function is omitted, it just returns the average of the array elements.
Note that the `arrayAvg` is a [higher-order function](../../sql-reference/functions/index.md#higher-order-functions). You can pass a lambda function to it as the first argument.