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 adding “WITH *" #3197

Open
ljhhuxiaoba opened this issue Sep 29, 2023 · 0 comments
Open

Inconsistent results caused by adding “WITH *" #3197

ljhhuxiaoba opened this issue Sep 29, 2023 · 0 comments

Comments

@ljhhuxiaoba
Copy link

ljhhuxiaoba commented Sep 29, 2023

I execute two queries on my RedisGraph and get an error.

Redis version:7.2.0
RedisGraph version: v2.12.10
operating system: windows 11
API:Cypher version 9

Steps to reproduce:
graph.txt
Ⅰ: Run the graph.txt to create two same graphs
Ⅱ: Execute the following two queries separately
GRAPH.QUERY graph 'OPTIONAL MATCH (n0)-[r0]-() CREATE (n3)-[r2:T3]->(:L1) RETURN 1'
GRAPH.QUERY graph 'OPTIONAL MATCH (n0)-[r0]-() CREATE (n3)-[r2:T3]->(:L1) WITH * RETURN 1'

I think these two queries are equivalent, but they don't create the same number of nodes and relationships as shown below:

"Nodes created: 84"
"Relationships created: 42"

"Nodes created: 92"
"Relationships created: 46"

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