@@ -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