Skip to content

Cypher queries broken in 22.1.3 #314

Description

@artturimatias

ArcadeDB Version: 22.1.3

JDK Version: what is included in official docker image

OS: Debian 11

Expected behavior

I create a database with two vertices with labels "First" and "Second".
Following query should return both nodes:
MATCH (a),(b) WHERE a.label = "First" AND b.label = "Second" RETURN a,b

NOTE: this worked in 21.10.1

Actual behavior

Query returns empty array for vertices

Steps to reproduce

CREATE (p:Person {label:"First"}) return p
CREATE (p:Person {label:"Second"}) return p
MATCH (a),(b) WHERE a.label = "First" AND b.label = "Second" RETURN a,b

ADDITION: CURL commans used

curl -X POST -H "Content-Type: application/json" \
  -d '{"command": "CREATE (n:Person {label:\"First\"}) return n", "language": "cypher", "serializer": "graph"}' \
  http://localhost:2480/api/v1/command/kukakukin --user "root:rootroot"
curl -X POST -H "Content-Type: application/json" \
  -d '{"command": "CREATE (n:Person {label:\"Second\"}) return n", "language": "cypher", "serializer": "graph"}' \
   http://localhost:2480/api/v1/command/kukakukin --user "root:rootroot"
curl -X POST -H "Content-Type: application/json" \
  -d '{"command": "MATCH (a),(b) WHERE a.label = \"First\" AND b.label = \"Second\" RETURN a,b", "language": "cypher", "serializer": "graph"}' \
   http://localhost:2480/api/v1/command/kukakukin --user "root:rootroot"

result:
{"result":{"vertices":[],"records":[],"edges":[]},"user":"root","version":"22.1.3 (build 440ab28fffef33b043815beebe78fb7e65a0a664/1643746379060/main)"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions