elasticsearch/docs/reference/esql/functions/aggregation-functions.asciidoc
Gal Lalouche 2be4cd983f
ESQL: Support ST_EXTENT_AGG (#117451)
This PR adds support for ST_EXTENT_AGG aggregation, i.e., computing a bounding box over a set of points/shapes (Cartesian or geo). Note the difference between this aggregation and the already implemented scalar function ST_EXTENT.

This isn't a very efficient implementation, and future PRs will attempt to read these extents directly from the doc values.
We currently always use longitude wrapping, i.e., we may wrap around the dateline for a smaller bounding box. Future PRs will let the user control this behavior.
Fixes #104659.
2024-12-13 12:41:24 +02:00

42 lines
1.1 KiB
Text

[[esql-agg-functions]]
==== {esql} aggregate functions
++++
<titleabbrev>Aggregate functions</titleabbrev>
++++
The <<esql-stats-by>> command supports these aggregate functions:
// tag::agg_list[]
* <<esql-avg>>
* <<esql-count>>
* <<esql-count_distinct>>
* <<esql-max>>
* <<esql-median>>
* <<esql-median_absolute_deviation>>
* <<esql-min>>
* <<esql-percentile>>
* experimental:[] <<esql-st_centroid_agg>>
* experimental:[] <<esql-st_extent_agg>>
* <<esql-std_dev>>
* <<esql-sum>>
* <<esql-top>>
* <<esql-values>>
* <<esql-weighted_avg>>
// end::agg_list[]
include::layout/avg.asciidoc[]
include::layout/count.asciidoc[]
include::layout/count_distinct.asciidoc[]
include::layout/max.asciidoc[]
include::layout/median.asciidoc[]
include::layout/median_absolute_deviation.asciidoc[]
include::layout/min.asciidoc[]
include::layout/percentile.asciidoc[]
include::layout/st_centroid_agg.asciidoc[]
include::layout/st_extent_agg.asciidoc[]
include::layout/std_dev.asciidoc[]
include::layout/sum.asciidoc[]
include::layout/top.asciidoc[]
include::layout/values.asciidoc[]
include::layout/weighted_avg.asciidoc[]