Skip to content

Commit 91d6122

Browse files
committed
add imidiate sibiling to parent op
1 parent 763cad5 commit 91d6122

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

redisgraph/execution_plan.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ def _create_operation(args):
164164
if op_level == level:
165165
# if the operation level equal to the current level
166166
# set the current operation and move next
167-
current = _create_operation(current_op.split("|"))
167+
child = _create_operation(current_op.split("|"))
168+
if current:
169+
current = stack.pop()
170+
current.append_child(child)
171+
current = child
168172
i += 1
169173
elif op_level == level + 1:
170174
# if the operation is child of the current operation

0 commit comments

Comments
 (0)