Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong result query in creating edges #2487

Closed
ddaa2000 opened this issue Jul 22, 2022 · 1 comment
Closed

Wrong result query in creating edges #2487

ddaa2000 opened this issue Jul 22, 2022 · 1 comment

Comments

@ddaa2000
Copy link

RedisGraph 2.8.15
After executing following queries in an empty database:
CREATE (n0) RETURN *;
CREATE (n1 :L1 :L3 :L4{k7:-648503374, k25:'FA'}) RETURN *;
CREATE (n2 :L0 :L1 :L4{k26:-740728607}) RETURN *;
CREATE (n3 :L3{k19:'el'}) RETURN *;
CREATE (n4 :L1 :L2{k9:'K', k13:-648503374, k14:false}) RETURN *;
CREATE (n5) RETURN *;
CREATE (n6 :L2 :L4 :L5 :L6{k12:false, k15:-20004647, k17:'MvLR', k26:929398578, k29:'N7L6zJ', k31:'3XqhsYezV', k35:929398578}) RETURN *;
CREATE (n7 :L3 :L5{k20:'', k24:'MPhU8XD'}) RETURN *;
CREATE (n8 :L0{k0:false}) RETURN *;
CREATE (n9 :L0 :L3 :L6{k1:true, k2:'', k20:'7', k21:'p'}) RETURN *;
CREATE (n10) RETURN *;
CREATE (n11 :L4{k26:1802376245}) RETURN *;
CREATE (n12 :L2 :L4{k11:true, k13:615778134, k28:-740728607}) RETURN *;
CREATE (n13 :L1{k8:'F8CuXn', k10:-345621334}) RETURN *;
CREATE (n14 :L3{k18:true, k19:'ofy', k23:'TW', k24:''}) RETURN *;
CREATE (n15) RETURN *;
CREATE (n16) RETURN *;
CREATE (n17 :L1 :L5{k6:false, k8:'D', k34:'m5', k36:true, k37:true}) RETURN *;
CREATE (n18 :L3 :L6{k24:'6L0X', k39:false, k41:'sk'}) RETURN *;
MATCH (n6 :L2 :L4 :L5 :L6{k12:false, k15:-20004647, k17:'MvLR', k26:929398578, k29:'N7L6zJ', k31:'3XqhsYezV', k35:929398578}), (n15) MERGE (n6)-[r0 :T4]->(n15) RETURN *;
MATCH (n7 :L3 :L5{k20:'', k24:'MPhU8XD'}), (n10) MERGE (n7)<-[r1 :T3{k62:899521365}]-(n10) RETURN *;

Then execute:
MATCH (n0)-[r]->(n1) RETURN 2

The result should contain 38 lines since their should be 38 relationships in the database (just as neo4j do). However, I got 37 lines instead:

127.0.0.1:6379> GRAPH.QUERY TEST "MATCH (n0)-[r]->(n1) RETURN 2"

    1. "2"
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
      1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
    1. (integer) 2
@LiorKogan
Copy link
Member

Duplicate of #2208

@LiorKogan LiorKogan marked this as a duplicate of #2208 Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants