Skip to content

Commit 55b9246

Browse files
Fix failing UTs
1 parent 89dfb4e commit 55b9246

File tree

1 file changed

+5
-2
lines changed
  • x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql

1 file changed

+5
-2
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/230_folding.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ Foldable query using KNN on image_vector:
454454
FROM employees
455455
| WHERE KNN(image_vector, [0.4, 0.5, 0.9], 1 + 1)
456456
| KEEP hire_date, salary, salary_change, salary_change_long, name, image_vector
457-
| LIMIT 5
457+
| LIMIT 2
458458
- match: { columns.0.name: "hire_date" }
459459
- match: { columns.1.name: "salary" }
460460
- match: { columns.2.name: "salary_change" }
@@ -533,7 +533,10 @@ KNN on non constant query:
533533
| KEEP hire_date, salary, salary_change, salary_change_long, name, image_vector
534534
| LIMIT 5
535535
- match: { error.type: "verification_exception" }
536-
- contains: { error.reason: "Query must be a valid string in [KNN(image_vector, image_vector, 1)], found [image_vector" }
536+
#We only check that the problematic string is there, because the error message is slightly different in old versions
537+
#Query must be a valid string in [KNN(image_vector, image_vector, 1)], found [image_vector
538+
#second argument of [KNN(image_vector, image_vector, 1)] must be a constant, received [image_vector]
539+
- contains: { error.reason: "[KNN(image_vector, image_vector, 1)]" }
537540

538541
---
539542

0 commit comments

Comments
 (0)