Skip to content

Commit 2ded426

Browse files
committed
Make tests less sensitive to ordering issues in serverless
1 parent 236347e commit 2ded426

File tree

1 file changed

+3
-3
lines changed
  • x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql

1 file changed

+3
-3
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/130_spatial.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ values supported for geo_point:
161161
- "No limit defined, adding default limit of \\[.*\\]"
162162
esql.query:
163163
body:
164-
query: 'FROM geo_points | STATS locations = VALUES(location)'
164+
query: 'FROM geo_points | STATS locations = VALUES(location) | EVAL locations = MV_SORT(TO_STRING(locations))'
165165
- length: { columns: 1 }
166166
- match: { columns.0.name: locations }
167-
- match: { columns.0.type: geo_point }
167+
- match: { columns.0.type: keyword }
168168
- length: { values: 1 }
169-
- match: { values.0.0: ["POINT (1.0 -1.0)", "POINT (-1.0 1.0)"] }
169+
- match: { values.0.0: ["POINT (-1.0 1.0)", "POINT (1.0 -1.0)"] }
170170

171171
---
172172
cartesian_point:

0 commit comments

Comments
 (0)