Skip to content

Commit 481f5bb

Browse files
committed
Another test for serverless
1 parent 71dc6a3 commit 481f5bb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,27 @@ TIP | POINT (13.1442589810713 32.6691695504993) | 582085853791125503
937937
XMN | POINT (118.12696884672 24.537192570557) | null | null
938938
;
939939

940+
literalGridGeohexByBounds
941+
required_capability: spatial_grid
942+
943+
ROW location = ["POINT (46.035023249891 51.5606456508842)", "POINT (13.1442589810713 32.6691695504993)", "POINT (118.12696884672 24.537192570557)"]
944+
| MV_EXPAND location
945+
| EVAL location = TO_GEOPOINT(location)
946+
| EVAL geohex = ST_GEOHEX(location, 1)
947+
| EVAL geohexBounded = ST_GEOHEX(location, 1, TO_GEOSHAPE("POLYGON((0.0 30.0, 12.0 30.0, 12.0 60.0, 0.0 60.0, 0.0 30.0))"))
948+
| EVAL geohex = ST_GEOHEX_TO_STRING(geohex)
949+
| EVAL geohexBounded = ST_GEOHEX_TO_STRING(geohexBounded)
950+
| EVAL geohexShape = ST_GEOHEX_TO_GEOSHAPE(geohex)
951+
| KEEP location, geohex, geohexBounded, geohexShape
952+
| SORT geohex ASC
953+
;
954+
955+
location:geo_point | geohex:keyword | geohexBounded:keyword | geohexShape:geo_shape
956+
POINT (46.035023249891 51.5606456508842) | 8110bffffffffff | null | POLYGON ((42.136829069634125 51.40943727610449, 47.038222832332735 48.33994165728296, 53.670493635625505 49.37211750883398, 56.286117998753014 53.74532256646542, 51.15131422930829 57.15637211465772, 43.547481617187756 55.820803924848654, 42.136829069634125 51.40943727610449))
957+
POINT (13.1442589810713 32.6691695504993) | 813fbffffffffff | 813fbffffffffff | POLYGON ((8.974635637589913 30.254840780701706, 9.380676605201614 25.60370257696876, 13.915183885634578 23.45043771532035, 18.351304577591982 25.86678026136113, 18.343416368196834 30.62734805513404, 13.488580338198277 32.87501547725471, 8.974635637589913 30.254840780701706))
958+
POINT (118.12696884672 24.537192570557) | 8141bffffffffff | null | POLYGON ((121.34751445935747 26.200276060455465, 120.50339385995798 29.892985338693542, 116.26130043917948 31.68090796798786, 112.74092235558841 29.367231998154967, 113.70376749169584 25.199133186716526, 117.99047716641066 23.5089519597363, 119.64146543031175 24.728661050965922, 121.34751445935747 26.200276060455465))
959+
;
960+
940961
gridGeohexStatsByPointsBounds
941962
required_capability: spatial_grid
942963

0 commit comments

Comments
 (0)