Skip to content

Commit d08d08d

Browse files
committed
Fix YAML tests
1 parent 85ac093 commit d08d08d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/180_match_operator.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ setup:
121121

122122
- match: { status: 400 }
123123
- match: { error.type: verification_exception }
124-
- match: { error.reason: "Found 1 problem\nline 1:60: [:] operator requires a mapped index field, found [upper_content]" }
124+
- match: { error.reason: "Found 1 problem\nline 1:60: [:] operator cannot operate on [upper_content], which is not a field from an index mapping" }
125125

126126
---
127127
"match on overwritten column":
@@ -135,7 +135,7 @@ setup:
135135

136136
- match: { status: 400 }
137137
- match: { error.type: verification_exception }
138-
- match: { error.reason: "Found 1 problem\nline 1:78: [:] operator requires a mapped index field, found [content]" }
138+
- match: { error.reason: "Found 1 problem\nline 1:78: [:] operator cannot operate on [content], which is not a field from an index mapping" }
139139

140140
---
141141
"match after stats":
@@ -191,4 +191,4 @@ setup:
191191

192192
- match: { status: 400 }
193193
- match: { error.type: verification_exception }
194-
- match: { error.reason: "Found 1 problem\nline 1:19: [:] operator requires a text or keyword field, but [id] has type [integer]" }
194+
- match: { error.reason: "Found 1 problem\nline 1:19: first argument of [id:\"fox\"] must be [string], found value [id] type [integer]" }

0 commit comments

Comments
 (0)