We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91d6122 commit 031786cCopy full SHA for 031786c
tests/functional/test_all.py
@@ -325,6 +325,25 @@ def test_explain(self):
325
326
self.assertEqual(result.structured_plan, expected)
327
328
+ result = redis_graph.explain("""MATCH (r:Rider), (t:Team)
329
+ RETURN r.name, t.name""")
330
+ expected = '''\
331
+Results
332
+ Project
333
+ Cartesian Product
334
+ Node By Label Scan | (r:Rider)
335
+ Node By Label Scan | (t:Team)'''
336
+ self.assertEqual(str(result), expected)
337
+
338
+ expected = Operation('Results') \
339
+ .append_child(Operation('Project')
340
+ .append_child(Operation('Cartesian Product')
341
+ .append_child(Operation('Node By Label Scan'))
342
343
+ ))
344
345
+ self.assertEqual(result.structured_plan, expected)
346
347
redis_graph.delete()
348
349
def test_profile(self):
0 commit comments