File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,18 @@ setup:
9595 - length : { values: 1 }
9696 - match : { values.0.0: 5 }
9797
98+ ---
99+ " match with integer field " :
100+ - do :
101+ allowed_warnings_regex :
102+ - " No limit defined, adding default limit of \\ [.*\\ ]"
103+ esql.query :
104+ body :
105+ query : ' FROM test | WHERE id:3 | KEEP id'
106+
107+ - length : { values: 1 }
108+ - match : { values.0.0: 3 }
109+
98110---
99111" match on non existing column " :
100112 - do :
@@ -178,17 +190,3 @@ setup:
178190 - match : { status: 400 }
179191 - match : { error.type: verification_exception }
180192 - match : { error.reason: "Found 1 problem\nline 1:34: [:] operator is only supported in WHERE commands" }
181-
182- ---
183- " match with non text field " :
184- - do :
185- catch : bad_request
186- allowed_warnings_regex :
187- - " No limit defined, adding default limit of \\ [.*\\ ]"
188- esql.query :
189- body :
190- query : ' FROM test | WHERE id:"fox"'
191-
192- - match : { status: 400 }
193- - match : { error.type: verification_exception }
194- - match : { error.reason: "Found 1 problem\nline 1:19: first argument of [id:\"fox\"] must be [string], found value [id] type [integer]" }
You can’t perform that action at this time.
0 commit comments