morrySnow commented on code in PR #1875: URL: https://github.com/apache/doris-website/pull/1875#discussion_r1922997910
########## docs/sql-manual/sql-functions/aggregate-functions/avg-weighted.md: ########## @@ -30,20 +30,22 @@ Calculates the weighted arithmetic mean, i.e., the result is the sum of the prod ## Syntax -` double avg_weighted(x, weight)` +```sql +double avg_weighted(<x>, <weight>) Review Comment: 1. 不要返回值类型 2. 函数名要大写 ```suggestion AVG_WEIGHTED(<x>, <weight>) ``` ########## docs/sql-manual/sql-functions/aggregate-functions/any-value.md: ########## @@ -24,31 +24,35 @@ specific language governing permissions and limitations under the License. --> -## description +## Description Returns any value from the expression or column in the group. If there is a non-NULL value, it returns any non-NULL value; otherwise, it returns NULL. ## Alias -`ANY` +```sql +ANY +``` Review Comment: 使用无序列表 ```suggestion - ANY ``` ########## docs/sql-manual/sql-functions/aggregate-functions/collect-list.md: ########## @@ -24,32 +24,36 @@ specific language governing permissions and limitations under the License. --> -## description +## Description Aggregation function, used to aggregate all values of a column into an array. ## Alias -`group_array` +```sql +group_array +``` ## Syntax -`ARRAY<T> collect_list(expr[,max_size])` +```sql +ARRAY<T> collect_list(<expr> [,<max_size>]) Review Comment: ```suggestion COLLECT_LIST(<expr> [,<max_size>]) ``` -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org