{ "title": "cypher plan validate", "description": "validate file used to check cypher plan opt", "testCases": [ { "dataset": "yago", "querys": { "vid": [ { "query": "MATCH (n) WHERE id(n)=10 RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node By Id Seek[10,]\n", "res": 1 }, { "query": "MATCH (n) WHERE id(n) IN [1,2,4] RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node By Id Seek[1,2,4,]\n", "res": 3 }, { "query": "MATCH (n) WHERE id(n)=1 OR id(n)=3 OR id(n)=4 OR id(n)=18 OR id(n)=1111 RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node By Id Seek[1,3,4,18,1111,]\n", "res": 4 }, { "query": "MATCH (n) WHERE id(n)=1 OR id(n)=3 AND id(n)=4 OR id(n)=18 OR id(n)=1111 RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Filter [((({id(false,n) = 1}||({id(false,n) = 3}&&{id(false,n) = 4}))||{id(false,n) = 18})||{id(false,n) = 1111})]\n All Node Scan [n]\n", "res": 2 } ], "uid": [ { "query": "MATCH (n) where n.name=\"Rachel Kempson\" RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node Index Seek [n] name IN [Rachel Kempson,]\n", "res": 1 }, { "query": "MATCH (n) where n.name in [\"Rachel Kempson\",\"Dennis Quaid\",\"none\"] RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node Index Seek [n] name IN [Rachel Kempson,Dennis Quaid,none,]\n", "res": 2 }, { "query": "MATCH (n) where n.name =\"Rachel Kempson\" or n.name= \"Dennis Quaid\" or n.name=\"none\" RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node Index Seek [n] name IN [Rachel Kempson,Dennis Quaid,none,]\n", "res": 2 }, { "query": "MATCH (n) where n.name = \"Rachel Kempson\" and n.name = \"Dennis Quaid\" or n.name = \"Vanessa Redgrave\" RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Filter [(({n.name = Rachel Kempson}&&{n.name = Dennis Quaid})||{n.name = Vanessa Redgrave})]\n All Node Scan [n]\n", "res": 1 }, { "query": "MATCH (n) where n.name = \"Rachel Kempson\" or n.name = \"Dennis Quaid\" or n.name = \"Vanessa Redgrave\" RETURN n", "plan": "Execution Plan:\nProduce Results\n Project [n]\n Node Index Seek [n] name IN [Rachel Kempson,Dennis Quaid,Vanessa Redgrave,]\n", "res": 3 } ], "list": [ { "query": "MATCH (n) RETURN id(n),label(n),properties(n);", "plan": "Execution Plan:\nProduce Results\n Project [id(n),label(n),properties(n)]\n All Node Scan [n]\n", "res": 21 } ], "parallel_traversal": [ { "query": "MATCH (n:Person) return count(n)", "plan": "Execution Plan:\nProduce Results\n Traversal [n]\n", "res": 1 }, { "query": "MATCH (n:Person) where n.birthyear > 1900 and n.birthyear < 2000 return count(n) ", "plan": "Execution Plan:\nProduce Results\n Traversal [n]\n", "res": 1 }, { "query": "MATCH (n:Person) return n.birthyear, count(n)", "plan": "Execution Plan:\nProduce Results\n Traversal [n]\n", "res": 13 }, { "query": "MATCH (f:Film)<-[:ACTED_IN]-(p:Person)-[:BORN_IN]->(c:City) return c.name, count(f)", "plan": "Execution Plan:\nProduce Results\n Traversal [f<--p-->c]\n", "res": 3 } ], "issue148": [ { "query": "WITH 'a' as a UNWIND ['a', 'b'] as k RETURN a, k", "plan": "Execution Plan:\nProduce Results\n Project [a,k]\n Cartesian Product\n Unwind [[a,b],k]\n Project [a]\n", "res": 2 }, { "query": "WITH 'a' as a UNWIND ['b']+a as k RETURN a, k", "plan": "Execution Plan:\nProduce Results\n Project [a,k]\n Apply\n Unwind [([b],a,+),k]\n Argument [a]\n Project [a]\n", "res": 2 } ] } } ] }