Skip to content

Commit b92143f

Browse files
authored
Add YAML test for "missing lookup key" scenario (#132870)
1 parent 7a34391 commit b92143f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/190_lookup_join.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,23 @@ lookup-no-key:
276276

277277
- match: { error.type: "verification_exception" }
278278
- contains: { error.reason: "Unknown column [key] in right side of join" }
279+
---
280+
lookup-no-key-only-key:
281+
- requires:
282+
capabilities:
283+
- method: POST
284+
path: /_query
285+
parameters: [ ]
286+
capabilities: [ enable_lookup_join_on_remote ]
287+
reason: "recent lookup join fix"
288+
- do:
289+
esql.query:
290+
body:
291+
query: 'FROM test | LOOKUP JOIN test-lookup-no-key ON key | KEEP key'
292+
catch: "bad_request"
279293

294+
- match: { error.type: "verification_exception" }
295+
- contains: { error.reason: "Unknown column [key] in right side of join" }
280296
---
281297
basic join on two fields:
282298
- requires:

0 commit comments

Comments
 (0)