Skip to content

Commit

Permalink
fix(clickhouse): get_parameters_from_uri failing when secure is true (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamelxl authored Feb 28, 2025
1 parent eacb234 commit 84b52b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/db_engine_specs/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ def get_parameters_from_uri(
cls, uri: str, encrypted_extra: dict[str, Any] | None = None
) -> BasicParametersType:
url = make_url_safe(uri)
query = url.query
query = dict(url.query)
if "secure" in query:
encryption = url.query.get("secure") == "true"
encryption = query.get("secure") == "true"
query.pop("secure")
else:
encryption = False
Expand All @@ -346,7 +346,7 @@ def get_parameters_from_uri(
host=url.host,
port=url.port,
database="" if url.database == "__default__" else cast(str, url.database),
query=dict(query),
query=query,
encryption=encryption,
)

Expand Down

0 comments on commit 84b52b2

Please sign in to comment.