FalkorDB / FalkorDB

A super fast Graph Database uses GraphBLAS under the hood for its sparse adjacency matrix graph representation. Our goal is to provide the best Knowledge Graph for LLM (GraphRAG).

Home Page:https://www.falkordb.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent results caused by adding “WITH *"

gkorland opened this issue · comments

ref: RedisGraph/RedisGraph#3197

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"