Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/test_cypher_vector_behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
Loading