Skip to content

Commit 59e02b4

Browse files
committed
Fix test
1 parent 95baad7 commit 59e02b4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/OptimizerVerificationTests.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,32 +254,29 @@ public void testRemoteEnrichAfterLookupJoin() {
254254
| %s
255255
""", lookupCommand), analyzer);
256256

257-
String err = error(Strings.format("""
257+
plan(Strings.format("""
258258
FROM test
259259
| EVAL language_code = languages
260260
| %s
261261
| ENRICH _remote:languages ON language_code
262262
""", lookupCommand), analyzer);
263-
assertThat(err, containsString("4:3: ENRICH with remote policy can't be executed after [" + lookupCommand + "]@3:3"));
264263

265-
err = error(Strings.format("""
264+
plan(Strings.format("""
266265
FROM test
267266
| EVAL language_code = languages
268267
| %s
269268
| ENRICH _remote:languages ON language_code
270269
| %s
271270
""", lookupCommand, lookupCommand), analyzer);
272-
assertThat(err, containsString("4:3: ENRICH with remote policy can't be executed after [" + lookupCommand + "]@3:3"));
273271

274-
err = error(Strings.format("""
272+
plan(Strings.format("""
275273
FROM test
276274
| EVAL language_code = languages
277275
| %s
278276
| EVAL x = 1
279277
| MV_EXPAND language_code
280278
| ENRICH _remote:languages ON language_code
281279
""", lookupCommand), analyzer);
282-
assertThat(err, containsString("6:3: ENRICH with remote policy can't be executed after [" + lookupCommand + "]@3:3"));
283280
}
284281

285282
public void testRemoteLookupJoinWithPipelineBreaker() {

0 commit comments

Comments
 (0)