@@ -262,7 +262,10 @@ Foldable query using MATCH_PHRASE on name but with non-foldable expression:
262262 | KEEP hire_date, salary, salary_change, salary_change_long, name
263263 | LIMIT 5
264264 - match : { error.type: "verification_exception" }
265- - contains : { error.reason: "Query must be a valid string in [MATCH_PHRASE(name, CONCAT(\"Bob \", name))], found [CONCAT(\"Bob \", name)]" }
265+ # We only check that the problematic string is there, because the error message is slightly different in old versions
266+ # second argument of [MATCH_PHRASE(name, CONCAT("Bob ", name))] must be a constant, received [CONCAT("Bob ", name)]"
267+ # Query must be a valid string in [MATCH_PHRASE(name, CONCAT(\"Bob \", name))], found [CONCAT(\"Bob \", name)]
268+ - contains : { error.reason: "[MATCH_PHRASE(name, CONCAT(\"Bob \", name))]" }
266269
267270---
268271
@@ -285,7 +288,10 @@ Foldable query using MATCH_PHRASE on name but with non constant query:
285288 | KEEP hire_date, salary, salary_change, salary_change_long, name
286289 | LIMIT 5
287290 - match : { error.type: "verification_exception" }
288- - contains : { error.reason: "Query must be a valid string in [MATCH_PHRASE(name, name)], found [name" }
291+ # We only check that the problematic string is there, because the error message is slightly different in old versions
292+ # second argument of [MATCH_PHRASE(name, name)] must be a constant, received [name]
293+ # Query must be a valid string in [MATCH_PHRASE(name, name)], found [name
294+ - contains : { error.reason: "[MATCH_PHRASE(name, name)]" }
289295
290296---
291297
@@ -401,7 +407,10 @@ Foldable query using QSTR on name but with non-foldable expression:
401407 | KEEP hire_date, salary, salary_change, salary_change_long, name
402408 | LIMIT 5
403409 - match : { error.type: "verification_exception" }
404- - contains : { error.reason: "Query must be a valid string in [QSTR(CONCAT(name, \"Bob\"))], found [CONCAT(name, \"Bob\")]" }
410+ # We only check that the problematic string is there, because the error message is slightly different in old versions
411+ # first argument of [QSTR(CONCAT(name, "Bob"))] must be a constant, received [CONCAT(name, "Bob")]"
412+ # Query must be a valid string in [QSTR(CONCAT(name, \"Bob\"))], found [CONCAT(name, \"Bob\")]
413+ - contains : { error.reason: "[QSTR(CONCAT(name, \"Bob\"))]" }
405414
406415---
407416
0 commit comments