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 authored May 14, 2024
1 parent 7591e29 commit 03bc2a3
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

if not name.isidentifier():
Expand Down

0 comments on commit 03bc2a3

Please sign in to comment.