Skip to content

Possibly wrong results when using variable named 'anon_N' #2467

@LiorKogan

Description

@LiorKogan

RedisGraph 2.8.15

First, let's add some data:

graph.delete g
graph.query g "create (n1:N{id:1})-[r:R{rid:1}]->(n2:N{id:2})"

Now, the following queries return different results:

graph.query g "match (n)-[r]->() return n"
graph.query g "match (anon_0)-[r]->() return anon_0"

The user-defined name is mixed with an internal-allocated name anon_0.

127.0.0.1:6379> graph.explain g "match (anon_0)-[r]->() return anon_0"
1) "Results"
2) "    Project"
3) "        Expand Into | (anon_0)->(anon_0)"
4) "            All Node Scan | (anon_0)"

Internal allocated names should never be identical to user-defined names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions