Skip to content

Commit

Permalink
Enfore server side parameters to be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Jul 7, 2023
1 parent 682c3a3 commit e1c36b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dbt/adapters/spark/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SparkCredentials(Credentials):
connect_retries: int = 0
connect_timeout: int = 10
use_ssl: bool = False
server_side_parameters: Dict[str, Any] = field(default_factory=dict)
server_side_parameters: Dict[str, str] = field(default_factory=dict)
retry_all: bool = False

@classmethod
Expand Down Expand Up @@ -142,6 +142,10 @@ def __post_init__(self) -> None:
if self.method != SparkConnectionMethod.SESSION:
self.host = self.host.rstrip("/")

self.server_side_parameters = {
str(key): str(value) for key, value in self.server_side_parameters
}

@property
def type(self) -> str:
return "spark"
Expand Down

0 comments on commit e1c36b0

Please sign in to comment.