Skip to content

Commit 2029c26

Browse files
committed
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.
1 parent e772002 commit 2029c26

File tree

79 files changed

+4925
-235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4925
-235
lines changed

docs/changelog/117451.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 117451
2+
summary: ST_EXTENT aggregation
3+
area: ES|QL
4+
type: feature
5+
issues:
6+
- 104659

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The <<esql-stats-by>> command supports these aggregate functions:
1717
* <<esql-min>>
1818
* <<esql-percentile>>
1919
* experimental:[] <<esql-st_centroid_agg>>
20+
* experimental:[] <<esql-st_extent_agg>>
2021
* <<esql-std_dev>>
2122
* <<esql-sum>>
2223
* <<esql-top>>
@@ -33,6 +34,7 @@ include::layout/median_absolute_deviation.asciidoc[]
3334
include::layout/min.asciidoc[]
3435
include::layout/percentile.asciidoc[]
3536
include::layout/st_centroid_agg.asciidoc[]
37+
include::layout/st_extent_agg.asciidoc[]
3638
include::layout/std_dev.asciidoc[]
3739
include::layout/sum.asciidoc[]
3840
include::layout/top.asciidoc[]

docs/reference/esql/functions/description/st_extent_agg.asciidoc

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/examples/st_extent_agg.asciidoc

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/st_extent_agg.json

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/st_extent_agg.md

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/layout/st_extent_agg.asciidoc

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/parameters/st_extent_agg.asciidoc

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/signature/st_extent_agg.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/reference/esql/functions/types/st_extent_agg.asciidoc

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)