Skip to content

Commit

Permalink
Rename if_clause to if_value to make it more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed May 30, 2024
1 parent d71f923 commit 94cf879
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gateway/converter/substrait_plan_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ def visit_record(self, record: algebra_pb2.Expression.MultiOrList.Record) -> Any
for field in record.fields:
self.visit_expression(field)

def visit_if_value(self, if_clause: algebra_pb2.Expression.SwitchExpression.IfValue) -> Any:
def visit_if_value(self, if_value: algebra_pb2.Expression.SwitchExpression.IfValue) -> Any:
"""Visits an if value."""
if if_clause.HasField('if'):
self.visit_literal(getattr(if_clause, 'if'))
if if_clause.HasField('then'):
self.visit_expression(if_clause.then)
if if_value.HasField('if'):
self.visit_literal(getattr(if_value, 'if'))
if if_value.HasField('then'):
self.visit_expression(if_value.then)

def visit_struct(self, structure: type_pb2.Type.Struct) -> Any:
"""Visits a struct."""
Expand Down

0 comments on commit 94cf879

Please sign in to comment.