diff --git a/dbt/adapters/spark/connections.py b/dbt/adapters/spark/connections.py index f5dcbe6a1..7a1639816 100644 --- a/dbt/adapters/spark/connections.py +++ b/dbt/adapters/spark/connections.py @@ -155,7 +155,7 @@ def __post_init__(self) -> None: f"ImportError({e.msg})" ) from e - if self.method != SparkConnectionMethod.SESSION and self.host is not None: + if self.method != SparkConnectionMethod.SESSION: self.host = self.host.rstrip("/") self.server_side_parameters = {