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

Different result when moving node label backwards

gkorland opened this issue · comments

ref RedisGraph/RedisGraph#3224

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

To create graph:
input01.txt

Query pair:
Ⅰ: OPTIONAL MATCH (aypekdak:Person)<-[..1]-(huddsoyg:Person)-[]-()<-[]-(zghoicas:Person) RETURN count(zghoicas)
Ⅱ: OPTIONAL MATCH (aypekdak:Person)<-[..1]-(huddsoyg)-[]-()<-[]-(zghoicas:Person) WHERE huddsoyg:Person RETURN count(zghoicas)

I think these two queries are equivalent, but the first returns 14 and second returns 22.