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 — Bug in Cypher queries when trying to return path · Issue #383 · ArcadeData/arcadedb

Bug in Cypher queries when trying to return path #383

New issue
Copy link
New issue
Copy link
Closed
Closed
Bug in Cypher queries when trying to return path#383
Copy link
Assignees
lvca
Milestone
22.6.1

Description

@lvca
lvca
opened on Apr 22, 2022
Issue body actions

Discussed in #369

Originally posted by datanostra April 13, 2022
ArcadeDB version : 22.1.3

When I'm performing simple path finding Cypher queries, I would like to be able to return all objects present in the paths, but I can't
can't get my paths in the response.

This query returns an error:
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN path

Caused by: java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')
        at com.arcadedb.gremlin.query.CypherQueryEngine.transformMap(CypherQueryEngine.java:91)
        at org.apache.tinkerpop.gremlin.arcadedb.structure.ArcadeCypher.execute(ArcadeCypher.java:71)
        at com.arcadedb.gremlin.query.CypherQueryEngine.command(CypherQueryEngine.java:66)

I have also tried to collect my objects:
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN a,b,r
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN nodes(path)
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN [n in nodes(path) | n.id]

But all these queries return en empty result:
{"result":{"vertices":[],"records":[],"edges":[]},"user":"root","version":"22.1.3-SNAPSHOT (build d38e26aa6978b19d0d69999919b5c076fc994d37/1642118408201/main)"}

The only thing I can do for now is returning simple objects:
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN a
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN b
MATCH path = (a:Transaction{id:'node_a'})-[r:IS_IN]-(b:City{id:'node_b'}) RETURN r

Activity

  1. lvca
    added
    bug
    on Apr 22, 2022
  2. lvca
    added this to the 22.4.1 milestone on Apr 22, 2022
  3. lvca
    self-assigned this
    on Apr 22, 2022
  4. lvca
    added a commit that references this issue on Apr 22, 2022

    Cypher: supported returning of list of results. This is useful with r…

    876fe7f
  5. lvca
    closed this as completedon Apr 22, 2022
  6. mergify
    added a commit that references this issue on Aug 17, 2025

    chore(deps): bump org.apache.maven.plugins:maven-javadoc-plugin from …

    b84c410
  7. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    Cypher: supported returning of list of results. This is useful with r…

    2e1549a

    chore(deps): bump org.apache.maven.plugins:maven-javadoc-plugin from …

    f3a28a0
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.6.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.