Skip to content

Commit

Permalink
fix snowflake connector (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp authored Nov 8, 2023
1 parent 0a67439 commit 2c65c83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dlt/destinations/snowflake/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def to_connector_params(self) -> Dict[str, Any]:
private_key: Optional[bytes] = None
if self.private_key:
private_key = _read_private_key(self.private_key, self.private_key_passphrase)
return dict(
conn_params = dict(
self.query or {},
user=self.username,
password=self.password,
Expand All @@ -97,8 +97,10 @@ def to_connector_params(self) -> Dict[str, Any]:
warehouse=self.warehouse,
role=self.role,
private_key=private_key,
authenticator=self.authenticator,
)
if self.authenticator:
conn_params["authenticator"] = self.authenticator
return conn_params


@configspec
Expand Down

0 comments on commit 2c65c83

Please sign in to comment.