From 86817f27a5dbe89c68664520ca61ce29b050a433 Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Wed, 2 Dec 2026 15:08:46 +0900 Subject: [PATCH] test: accept the engine's new message for a SEARCH binding variable that is not in the MATCH (#563) The scheduled full run of 2026-12-02 failed on the same commit that was green on 2026-12-01 because arcadedata/arcadedb:latest moved (digest aeec2a48 to 4fec3782). The engine now supports SEARCH over relationships and words the refusal "the binding variable 'x' must be a node or relationship variable of the pattern of its MATCH"; 26.11.1 says "'x' must be a node variable". Accept both, as #527 did for DROP INDEX. --- tests/test_cypher_vector_behavior.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_cypher_vector_behavior.py b/tests/test_cypher_vector_behavior.py index 47b85b0..ce165b4 100644 --- a/tests/test_cypher_vector_behavior.py +++ b/tests/test_cypher_vector_behavior.py @@ -155,7 +155,11 @@ def test_search_mistakes_raise_arcadedb_error(db): "MATCH (d:Doc) SEARCH x IN (VECTOR INDEX `Doc[embedding]` FOR $vec LIMIT 2) " "RETURN d.name AS name" ) - with pytest.raises(ArcadeDBError, match="'x' must be a node variable"): + # 26.11.1 says "'x' must be a node variable"; the engine that added SEARCH over relationships + # (ArcadeData/arcadedb CypherVectorQueryRelationshipsTest) says "'x' must be a node or relationship variable". + with pytest.raises( + ArcadeDBError, match="'x' must be a node( or relationship)? variable" + ): db.query("opencypher", bad_variable, {"vec": QUERY}).to_list() optional = (