Skip to content

Commit de57aed

Browse files
committed
ES|QL Support for ST_GEOHASH, ST_GEOTILE and ST_GEOHEX (elastic#125143)
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.
1 parent d59e267 commit de57aed

File tree

77 files changed

+7324
-149
lines changed

Some content is hidden

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

77 files changed

+7324
-149
lines changed

docs/changelog/125143.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 125143
2+
summary: "ES|QL Support for ST_GEOHASH, ST_GEOTILE and ST_GEOHEX"
3+
area: "ES|QL"
4+
type: enhancement
5+
issues:
6+
- 123903

docs/reference/query-languages/esql/_snippets/functions/layout/round_to.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/reference/query-languages/esql/_snippets/functions/layout/scalb.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/reference/query-languages/esql/_snippets/functions/parameters/round_to.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/reference/query-languages/esql/_snippets/functions/parameters/scalb.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/reference/query-languages/esql/_snippets/functions/types/round_to.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/reference/query-languages/esql/_snippets/functions/types/scalb.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/reference/query-languages/esql/images/functions/round_to.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/reference/query-languages/esql/images/functions/scalb.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

x-pack/plugin/esql/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ dependencies {
3333
implementation project('compute:ann')
3434
implementation project(':libs:dissect')
3535
implementation project(':libs:grok')
36+
api "org.apache.lucene:lucene-spatial3d:${versions.lucene}"
37+
api project(":libs:h3")
3638
implementation project('arrow')
3739

3840
// Also contains a dummy processor to allow compilation with unused annotations.
@@ -62,6 +64,10 @@ dependencies {
6264
internalClusterTestImplementation project(":modules:mapper-extras")
6365
}
6466

67+
tasks.named("dependencyLicenses").configure {
68+
mapping from: /lucene-.*/, to: 'lucene'
69+
}
70+
6571
def generatedPath = "src/main/generated"
6672
def projectDirectory = project.layout.projectDirectory
6773
def generatedSourceDir = projectDirectory.dir(generatedPath)

0 commit comments

Comments
 (0)