Skip to content

Conversation

craigtaverner
Copy link
Contributor

Manual backport of #125143

Due to conflicts and other backports that added 9.x level docs, this PR has some cleanup of that too.

Added support for the three primary scalar grid functions:
* `ST_GEOHASH(geom, precision)`
* `ST_GEOTILE(geom, precision)`
* `ST_GEOHEX(geom, precision)`

As well as versions of these three that take an optional `geo_shape` boundary (must be a `BBOX` ie. `Rectangle`).

And also supporting conversion functions that convert the grid-id from long to string and back to long.

This work represents the core of the feature to support geo-grid aggregations in ES|QL.
@craigtaverner craigtaverner added >enhancement :Analytics/Geo Indexing, search aggregations of geo points and shapes backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v8.19.0 labels Jun 4, 2025
Copy link
Contributor

github-actions bot commented Jun 4, 2025

Documentation preview:

@craigtaverner craigtaverner changed the title 8.19 esql grid aggs [8.19] ES|QL Support for ST_GEOHASH, ST_GEOTILE and ST_GEOHEX (#125143) Jun 4, 2025
@craigtaverner craigtaverner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 5, 2025
@craigtaverner craigtaverner removed the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 5, 2025
@craigtaverner craigtaverner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 5, 2025
@craigtaverner craigtaverner merged commit c64a02f into elastic:8.19 Jun 5, 2025
15 checks passed
@craigtaverner craigtaverner deleted the 8.19_esql_grid_aggs branch June 5, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL :Analytics/Geo Indexing, search aggregations of geo points and shapes auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant