File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ def append_child(self, child):
11
11
def __eq__ (self , o : object ) -> bool :
12
12
if not isinstance (o , Operation ):
13
13
return False
14
-
14
+
15
15
if self .name != o .name or self .args != self .args or len (self .children ) != len (o .children ):
16
16
return False
17
17
18
18
for i in range (len (self .children )):
19
19
if not self .children [i ] == o .children [i ]:
20
20
return False
21
-
21
+
22
22
return True
23
23
24
24
@@ -31,9 +31,9 @@ def __str__(self) -> str:
31
31
return "\n " .join (self .plan )
32
32
33
33
def _operation_tree (self ):
34
- i = 0
35
- level = 0
36
- stack = []
34
+ i = 0
35
+ level = 0
36
+ stack = []
37
37
current = None
38
38
39
39
while i < len (self .plan ):
Original file line number Diff line number Diff line change @@ -256,9 +256,9 @@ def test_execution_plan(self):
256
256
self .assertEqual (str (result ), expected )
257
257
258
258
expected = Operation ('Results' ) \
259
- .append_child (Operation ('Project' ) \
260
- .append_child (Operation ('Conditional Traverse' , "(t:Team)->(r:Rider)" ) \
261
- .append_child (Operation ("Filter" ) \
259
+ .append_child (Operation ('Project' )
260
+ .append_child (Operation ('Conditional Traverse' , "(t:Team)->(r:Rider)" )
261
+ .append_child (Operation ("Filter" )
262
262
.append_child (Operation ('Node By Label Scan' , "(t:Team)" )))))
263
263
264
264
self .assertEqual (result .structured_plan , expected )
You can’t perform that action at this time.
0 commit comments