Skip to content

Commit

Permalink
Update ibis/backends/pyspark/compiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed May 14, 2024
1 parent 53569e4 commit 136493d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/pyspark/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def __sql_name__(self, op) -> str:
raise TypeError(f"Cannot get SQL name for {type(op).__name__}")

# builtin functions will not modify the name
if hasattr(op, "__input_type__") and op.__input_type__ == InputType.BUILTIN:
if getattr(op, "__input_type__", None) == InputType.BUILTIN:
return name

Check warning on line 333 in ibis/backends/pyspark/compiler.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/pyspark/compiler.py#L333

Added line #L333 was not covered by tests

if not name.isidentifier():
Expand Down

0 comments on commit 136493d

Please sign in to comment.