elasticsearch/docs/reference/esql/aggregation-functions/avg.asciidoc

15 lines
317 B
Plaintext

[[esql-agg-avg]]
=== `AVG`
The average of a numeric field.
[source.merge.styled,esql]
----
include::{esql-specs}/stats.csv-spec[tag=avg]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/stats.csv-spec[tag=avg-result]
|===
The result is always a `double` not matter the input type.