From 03bc2a35e9b6b01ecb2b2711649bfb4dbe3ee8b9 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 14 May 2024 07:24:07 -0400 Subject: [PATCH] Update ibis/backends/pyspark/compiler.py --- ibis/backends/pyspark/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/backends/pyspark/compiler.py b/ibis/backends/pyspark/compiler.py index a78080dbc4bfa..b7b3ca347471c 100644 --- a/ibis/backends/pyspark/compiler.py +++ b/ibis/backends/pyspark/compiler.py @@ -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():