Skip to content

Commit aa36091

Browse files
committed
Remove all field evaluators except spatial field evaluator
And refine tests to better cover bounds parameter, fixing missing type information in the docs
1 parent ea324e4 commit aa36091

File tree

34 files changed

+315
-3009
lines changed

34 files changed

+315
-3009
lines changed

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

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

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

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

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

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

docs/reference/query-languages/esql/kibana/definition/functions/st_geohash.json

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

docs/reference/query-languages/esql/kibana/definition/functions/st_geohex.json

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

docs/reference/query-languages/esql/kibana/definition/functions/st_geotile.json

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

x-pack/plugin/esql/qa/testFixtures/src/main/resources/spatial-grid.csv-spec

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,6 @@ location:geo_point | geohash4:keyword | geohash3:keyword | geohash2:keyword | ge
6464
POINT(12.6493508684508 55.6285017221528) | u3bu | u3b | u3 | u
6565
;
6666

67-
geohashLiteralMv
68-
required_capability: spatial_grid
69-
70-
ROW location = TO_GEOPOINT("POINT(12.6493508684508 55.6285017221528)"), precision = [1,2,3,4,5]
71-
| MV_EXPAND precision
72-
| EVAL geohash = ST_GEOHASH(location, precision)
73-
| EVAL geohashString = ST_GEOHASH_TO_STRING(geohash)
74-
;
75-
76-
location:geo_point | precision:integer | geohash:long | geohashString:keyword
77-
POINT (12.6493508684508 55.6285017221528) | 1 | 417 | u
78-
POINT (12.6493508684508 55.6285017221528) | 2 | 13362 | u3
79-
POINT (12.6493508684508 55.6285017221528) | 3 | 427683 | u3b
80-
POINT (12.6493508684508 55.6285017221528) | 4 | 13686180 | u3bu
81-
POINT (12.6493508684508 55.6285017221528) | 5 | 437958005 | u3bur
82-
;
83-
8467
geohashField
8568
required_capability: spatial_grid
8669

@@ -370,23 +353,6 @@ location:geo_point | geotile4:keyword | geotile3:keyword
370353
POINT (12.6493508684508 55.6285017221528) | 4/8/5 | 3/4/2 | 2/2/1 | 1/1/0
371354
;
372355

373-
geotileLiteralMv
374-
required_capability: spatial_grid
375-
376-
ROW location = TO_GEOPOINT("POINT(12.6493508684508 55.6285017221528)"), precision = [1,2,3,4,5]
377-
| MV_EXPAND precision
378-
| EVAL geotile = ST_GEOTILE(location, precision)
379-
| EVAL geotileString = ST_GEOTILE_TO_STRING(geotile)
380-
;
381-
382-
location:geo_point | precision:integer | geotile:long | geotileString:keyword
383-
POINT (12.6493508684508 55.6285017221528) | 1 | 288230376688582656 | 1/1/0
384-
POINT (12.6493508684508 55.6285017221528) | 2 | 576460753377165313 | 2/2/1
385-
POINT (12.6493508684508 55.6285017221528) | 3 | 864691130602618882 | 3/4/2
386-
POINT (12.6493508684508 55.6285017221528) | 4 | 1152921508901814277 | 4/8/5
387-
POINT (12.6493508684508 55.6285017221528) | 5 | 1441151889885364234 | 5/17/10
388-
;
389-
390356
geotileField
391357
required_capability: spatial_grid
392358

@@ -640,23 +606,6 @@ location:geo_point | geohex4:keyword | geohex3:keyword |
640606
POINT (12.6493508684508 55.6285017221528) | 841f059ffffffff | 831f05fffffffff | 821f07fffffffff | 811f3ffffffffff
641607
;
642608

643-
geohexLiteralMv
644-
required_capability: spatial_grid
645-
646-
ROW location = TO_GEOPOINT("POINT(12.6493508684508 55.6285017221528)"), precision = [1,2,3,4,5]
647-
| MV_EXPAND precision
648-
| EVAL geohex = ST_GEOHEX(location, precision)
649-
| EVAL geohexString = ST_GEOHEX_TO_STRING(geohex)
650-
;
651-
652-
location:geo_point | precision:integer | geohex:long | geohexString:keyword
653-
POINT (12.6493508684508 55.6285017221528) | 1 | 581514107744681983 | 811f3ffffffffff
654-
POINT (12.6493508684508 55.6285017221528) | 2 | 586013859081355263 | 821f07fffffffff
655-
POINT (12.6493508684508 55.6285017221528) | 3 | 590517321269772287 | 831f05fffffffff
656-
POINT (12.6493508684508 55.6285017221528) | 4 | 595020895127339007 | 841f059ffffffff
657-
POINT (12.6493508684508 55.6285017221528) | 5 | 599524487238516735 | 851f0583fffffff
658-
;
659-
660609
geohexField
661610
required_capability: spatial_grid
662611

0 commit comments

Comments
 (0)