GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cypher queries broken in 22.1.3 · Issue #314 · ArcadeData/arcadedb

Cypher queries broken in 22.1.3 #314

New issue
Copy link
New issue
Copy link
Closed
Closed
Cypher queries broken in 22.1.3#314
Copy link
Assignees
lvca
Milestone
22.2.1

Description

@artturimatias
artturimatias
opened on Feb 4, 2022
Issue body actions

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

  1. lvca
    self-assigned this
    on Feb 4, 2022
  2. lvca
    added
    bug
    on Feb 4, 2022
  3. lvca
    added this to the 22.2.1 milestone on Feb 4, 2022
  4. lvca commented on Feb 4, 2022

    @lvca
    lvca
    on Feb 4, 2022
    Member
    More actions

    @artturimatias I created this test case and works:

    @Test
    public void testIssue314() throws ExecutionException, InterruptedException {
      final ArcadeGraph graph = ArcadeGraph.open("./target/testcypher");
      try {
    
        graph.getDatabase().getSchema().getOrCreateVertexType("Person");
    
        ResultSet p1 = graph.cypher("CREATE (p:Person {label:\"First\"}) return p").execute();
        Assertions.assertTrue(p1.hasNext());
        RID p1RID = p1.next().getIdentity().get();
    
        ResultSet p2 = graph.cypher("CREATE (p:Person {label:\"Second\"}) return p").execute();
        Assertions.assertTrue(p2.hasNext());
        RID p2RID = p2.next().getIdentity().get();
    
        final ArcadeCypher query = graph.cypher("MATCH (a),(b) WHERE a.label = \"First\" AND b.label = \"Second\" RETURN a,b");
        final ResultSet result = query.execute();
    
        Assertions.assertTrue(result.hasNext());
        final Result row = result.next();
        Assertions.assertNotNull(row.getProperty("a"));
        Assertions.assertEquals(p1RID, ((Result) row.getProperty("a")).getIdentity().get());
        Assertions.assertNotNull(row.getProperty("b"));
        Assertions.assertEquals(p2RID, ((Result) row.getProperty("b")).getIdentity().get());
    
      } finally {
        graph.drop();
      }
    }
  5. lvca commented on Feb 4, 2022

    @lvca
    lvca
    on Feb 4, 2022
    Member
    More actions

    I guess it must be in the HTTP layer. Checking it.

  6. lvca commented on Feb 4, 2022

    @lvca
    lvca
    on Feb 4, 2022
    Member
    More actions

    The issue seems in the serializer. If you omit the serializer = graph works. This is a nice workaround for now, looking for the cause.

    Reacted by Ari
  7. artturimatias commented on Feb 4, 2022

    @artturimatias
    artturimatias
    on Feb 4, 2022
    Author
    More actions

    This also explains why visualiser in ArcadeDb Studio does not work with Cypher queries.

    Reacted by Luca Garulli
  8. lvca
    added a commit that references this issue on Feb 4, 2022

    Fixed issue with cypher resultsets

    7c3caba
  9. lvca
    closed this as completedon Feb 4, 2022
  10. lvca commented on Feb 4, 2022

    @lvca
    lvca
    on Feb 4, 2022
    Member
    More actions

    Fixed in the main branch, it will be released with 22.2.1.

  11. mergify
    added a commit that references this issue on Mar 13, 2026

    chore(deps): bump https://github.com/macisamuele/language-formatters-…

    8c0899b
  12. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    Fixed issue with cypher resultsets

    f3f51b0

    chore(deps): bump https://github.com/macisamuele/language-formatters-…

    2e3ca1e
  13. mergify
    added a commit that references this issue on Jul 5, 2026

    chore(deps): bump the github-actions group across 1 directory with 8 …

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    • 22.2.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.