Skip to content

Commit 3210646

Browse files
committed
encode password string
1 parent c8828f8 commit 3210646

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: target_snowflake/connector.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import urllib.parse
34
from enum import Enum
45
from functools import cached_property
56
from operator import contains, eq
@@ -194,7 +195,7 @@ def get_sqlalchemy_url(self, config: dict) -> str:
194195
if self.auth_method == SnowflakeAuthMethod.BROWSER:
195196
params["authenticator"] = "externalbrowser"
196197
elif self.auth_method == SnowflakeAuthMethod.PASSWORD:
197-
params["password"] = config["password"]
198+
params["password"] = urllib.parse.quote(config["password"])
198199

199200
for option in ["warehouse", "role"]:
200201
if config.get(option):

0 commit comments

Comments
 (0)