chore: fix deprecation warnings for SQLALchemy URL (#23770)

This commit is contained in:
Sebastian Liebscher
2023-05-11 10:20:53 +02:00
committed by GitHub
parent e3719a1b07
commit 0788b5fdcc
5 changed files with 8 additions and 8 deletions

View File

@@ -314,7 +314,7 @@ class ClickHouseConnectEngineSpec(ClickHouseEngineSpec, BasicParametersMixin):
if not url_params.get("database"):
url_params["database"] = "__default__"
url_params.pop("encryption", None)
return str(URL(f"{cls.engine}+{cls.default_driver}", **url_params))
return str(URL.create(f"{cls.engine}+{cls.default_driver}", **url_params))
@classmethod
def get_parameters_from_uri(