-
Notifications
You must be signed in to change notification settings - Fork 617
One node has two rels, but only return one rel when query all #2592
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
Comments
I use new data to recheck the issue, also the problem; a->b, a->c, the query all return result is b has incoming a, c has incoming a, but a only has outgoing b, a do not include c. |
I encountered the same problem,and i think the reason is |
Could you create a database setup including the relationships? I tried to reproduce it on with the data from #2583 and also added the definition of the incoming relationships to the model. But all seems fine (for samples I thought it was worth looking at them). Would be good to get the problematic subset to figure out the problem. |
Sorry, forget to paste relationsips cql; I will give you a new simpler data(only 3 nodes and 2 rels) to test as below
create relationship
test findone(by node idd=node-41498c56-7f82-4444-927a-39e73fc1bfa1) it is normal has 2 incoming rels
test findAll, it is not normal, the node(idd=node-41498c56-7f82-4444-927a-39e73fc1bfa1) has only one incoming rel
|
@meistermeier hi, Has the problem recurred? |
Unfortunately to get down to this issue, I was not able to reproduce the problem. I also ran the following test multiple (a thousand) times for single and all results.
|
@meistermeier Sorry, I not provide sufficient details.
The findAll repository code is used custom query:
The test code is:
The test result is : |
That's interesting, I tried to reproduce it but still no chance. I created a (non-)reproducer https://github.com/meistermeier/neo4j-issues-examples/tree/master/gh-2592 |
@meistermeier hi, i add a new test fun in https://github.com/meistermeier/neo4j-issues-examples/pull/4, it is fail. |
The version is
with this in place, the test runs smoothly. |
@meistermeier Hi, The test passed when I use the new snapshot version you provided. Thanks a lot. Looking forward to the release of the new Release version. |
Thank you very much for your feedback. I will close this issue now and keep #2600 to have a single reference issue for the fix. |
Issue
One node has two rels, but only return one rel when query all.
query one Log (It is normal)
the node 20049 has two rels like this RECORD [node<20049>, [relationship<20044>, relationship<20043>], [node<20047>, node<20048>]] as the last line below
query all Log (It is not normal)
the node 20049 has two rels like this RECORD [node<20049>, [relationship<20044>, relationship<20043>], [node<20047>, node<20048>]] as the last line below, **but in return results, only one rel, the outgoingEdges list has only one element **
Entity
import data
you can use this cql to init data
The text was updated successfully, but these errors were encountered: