Skip to content

Commit 94fff87

Browse files
committed
Fix a test error (CompletionFunction are folded before the optimizer is applied)
1 parent 8389a70 commit 94fff87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ public void testRemoteEnrichAfterCoordinatorOnlyPlans() {
228228

229229
err = error("""
230230
FROM test
231-
| COMPLETION language_code = "some prompt" WITH { "inference_id" : "completion-inference-id" }
231+
| COMPLETION language_code = CONCAT("some prompt: ", first_name) WITH { "inference_id" : "completion-inference-id" }
232232
| ENRICH _remote:languages ON language_code
233233
""", analyzer);
234234
assertThat(
235235
err,
236236
containsString(
237237
"ENRICH with remote policy can't be executed after "
238-
+ "[COMPLETION language_code = \"some prompt\" WITH { \"inference_id\" : \"completion-inference-id\" }]@2:3"
238+
+ "[COMPLETION language_code = CONCAT(\"some prompt: \", first_name) WITH { \"inference_id\" : \"completion-inference-id\" }]@2:3"
239239
)
240240
);
241241

0 commit comments

Comments
 (0)