We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52baf8d + 8bf0929 commit bce9dc3Copy full SHA for bce9dc3
tap_clickhouse/client.py
@@ -6,6 +6,7 @@
6
from __future__ import annotations
7
8
from typing import Any, Iterable
9
+from urllib.parse import quote
10
11
import sqlalchemy # noqa: TCH002
12
from singer_sdk import SQLConnector, SQLStream
@@ -37,7 +38,7 @@ def get_sqlalchemy_url(self, config: dict) -> str:
37
38
else:
39
secure_options = f"secure={config['secure']}&verify={config['verify']}"
40
return (
- f"clickhouse+{config['driver']}://{config['username']}:{config['password']}@"
41
+ f"clickhouse+{config['driver']}://{quote(config['username'])}:{quote(config['password'])}@"
42
f"{config['host']}:{config['port']}/"
43
f"{config['database']}?{secure_options}"
44
)
0 commit comments