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

Inconsistent results caused by 0-length relationship #631

Open
ljhhuxiaoba opened this issue Nov 5, 2023 · 0 comments
Open

Inconsistent results caused by 0-length relationship #631

ljhhuxiaoba opened this issue Nov 5, 2023 · 0 comments

Comments

@ljhhuxiaoba
Copy link

agensgraph version:2.13.1

I executed 2 queries separately on my AgensGraph:
first query:
MATCH () MERGE (:L1{id:1}) CREATE ({id:2}) RETURN 1 AS a0

second query:
MATCH ()-[*0..0]-() MERGE (:L1{id:1}) CREATE ({id:2}) RETURN 1 AS a0

There are 4 nodes in the graph at the end of the execution of the first query, while there are 3 nodes in the graph at the end of the execution of the second query and I think these two queries are equivalent.

To create the graph data:
CREATE ();

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

1 participant