nebula
nebula copied to clipboard
Inconsistent Behaviours When Using Anonymous vs Named edges In MATCH
Environment
Nebula Version: nightly Operating System: Ubuntu22.04 Installation Method: Docker API: Docker
Steps to Reproduce
- Create the graph database:log.txt
- Execute the following two queries:
- query1
MATCH (n1 : L5 )<-[r1 : T4 ]-(n2 : L1 ),(n3 )-[r3 : T0 ]->(n4 : L0 )MATCH (n0)-[*1..1]->(n0)<-[*1..1]-(n2),(n5 :L0)-[r4 :T4]->(n6 :L1 :L6)WITH n1, n2, r1, n3, n4, r3, n0, n5, n6, r4 OPTIONAL MATCH (n5 )-[]->(n6 )<-[]-(n7 ) RETURN count(*)
- query2
MATCH (n1 : L5 )<-[r1 : T4 ]-(n2 : L1 ),(n3 )-[r3 : T0 ]->(n4 : L0 )MATCH (n0)-[m0*1..1]->(n0)<-[m1*1..1]-(n2),(n5 :L0)-[r4 :T4]->(n6 :L1 :L6)WITH n1, n2, r1, n3, n4, r3, n0, n5, n6, r4 OPTIONAL MATCH (n5 )-[]->(n6 )<-[]-(n7 ) RETURN count(*)
Expected Result
Both queries return the same result
Actual Result
The first query returns:
+----------+
| count(*) |
+----------+
| 4 |
+----------+
Got 1 rows (time spent 21.356ms/22.132827ms)
The second query returns:
[ERROR (-1005)]: Argument only support vertex, but got [("n6")-[T4(337)]->("n1")@0], whose type is 'list'
Issue Analysis
I executed both queries in Neo4j, and their results matched the first set of results above. So I think the first query is functioning correctly.