avg.asciidoc 317 B

1234567891011121314
  1. [[esql-agg-avg]]
  2. === `AVG`
  3. The average of a numeric field.
  4. [source.merge.styled,esql]
  5. ----
  6. include::{esql-specs}/stats.csv-spec[tag=avg]
  7. ----
  8. [%header.monospaced.styled,format=dsv,separator=|]
  9. |===
  10. include::{esql-specs}/stats.csv-spec[tag=avg-result]
  11. |===
  12. The result is always a `double` not matter the input type.