diff --git a/docs/reference/esql/processing-commands/stats.asciidoc b/docs/reference/esql/processing-commands/stats.asciidoc index 7377522a93201..0c479c1f62b76 100644 --- a/docs/reference/esql/processing-commands/stats.asciidoc +++ b/docs/reference/esql/processing-commands/stats.asciidoc @@ -3,7 +3,7 @@ === `STATS ... BY` The `STATS ... BY` processing command groups rows according to a common value -and calculate one or more aggregated values over the grouped rows. +and calculates one or more aggregated values over the grouped rows. **Syntax** @@ -41,6 +41,10 @@ The following <> are supported: include::../functions/aggregation-functions.asciidoc[tag=agg_list] +The following <> are supported: + +include::../functions/grouping-functions.asciidoc[tag=group_list] + NOTE: `STATS` without any groups is much much faster than adding a group. NOTE: Grouping on a single expression is currently much more optimized than grouping