File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,25 @@ def test_explain(self):
325
325
326
326
self .assertEqual (result .structured_plan , expected )
327
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
+ .append_child (Operation ('Node By Label Scan' ))
343
+ ))
344
+
345
+ self .assertEqual (result .structured_plan , expected )
346
+
328
347
redis_graph .delete ()
329
348
330
349
def test_profile (self ):
You can’t perform that action at this time.
0 commit comments