2023-10-17 23:36:14 +08:00
|
|
|
[[esql-agg-functions]]
|
2023-10-23 22:45:42 +08:00
|
|
|
==== {esql} aggregate functions
|
2023-10-17 23:36:14 +08:00
|
|
|
|
|
|
|
++++
|
|
|
|
<titleabbrev>Aggregate functions</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
2024-04-26 00:38:12 +08:00
|
|
|
The <<esql-stats-by>> command supports these aggregate functions:
|
2023-10-17 23:36:14 +08:00
|
|
|
|
2023-10-23 22:45:42 +08:00
|
|
|
// tag::agg_list[]
|
2024-07-09 18:01:46 +08:00
|
|
|
* <<esql-avg>>
|
2024-07-30 01:07:15 +08:00
|
|
|
* <<esql-count>>
|
|
|
|
* <<esql-count_distinct>>
|
2024-07-09 19:05:00 +08:00
|
|
|
* <<esql-max>>
|
2024-07-26 20:11:01 +08:00
|
|
|
* <<esql-median>>
|
|
|
|
* <<esql-median_absolute_deviation>>
|
2024-07-09 19:05:00 +08:00
|
|
|
* <<esql-min>>
|
2024-07-19 20:28:11 +08:00
|
|
|
* <<esql-percentile>>
|
2024-07-26 16:41:18 +08:00
|
|
|
* experimental:[] <<esql-st_centroid_agg>>
|
2024-07-22 19:43:58 +08:00
|
|
|
* <<esql-sum>>
|
2024-07-02 01:52:24 +08:00
|
|
|
* <<esql-top>>
|
2024-07-30 01:07:15 +08:00
|
|
|
* <<esql-values>>
|
2024-11-23 00:28:06 +08:00
|
|
|
* <<esql-weighted_avg>>
|
2023-10-23 22:45:42 +08:00
|
|
|
// end::agg_list[]
|
2023-10-17 23:36:14 +08:00
|
|
|
|
2024-07-09 18:01:46 +08:00
|
|
|
include::layout/avg.asciidoc[]
|
2024-07-30 01:07:15 +08:00
|
|
|
include::layout/count.asciidoc[]
|
|
|
|
include::layout/count_distinct.asciidoc[]
|
2024-07-09 19:05:00 +08:00
|
|
|
include::layout/max.asciidoc[]
|
2024-07-26 20:11:01 +08:00
|
|
|
include::layout/median.asciidoc[]
|
|
|
|
include::layout/median_absolute_deviation.asciidoc[]
|
2024-07-09 19:05:00 +08:00
|
|
|
include::layout/min.asciidoc[]
|
2024-07-19 20:28:11 +08:00
|
|
|
include::layout/percentile.asciidoc[]
|
2024-07-26 16:41:18 +08:00
|
|
|
include::layout/st_centroid_agg.asciidoc[]
|
2024-07-22 19:43:58 +08:00
|
|
|
include::layout/sum.asciidoc[]
|
2024-07-02 01:52:24 +08:00
|
|
|
include::layout/top.asciidoc[]
|
2024-07-30 01:07:15 +08:00
|
|
|
include::layout/values.asciidoc[]
|
2024-07-30 22:42:23 +08:00
|
|
|
include::layout/weighted_avg.asciidoc[]
|