Fix 2232: Presto - connection formatting issues when username/password configured (#2233)

* Fix 2232: Presto - connection formatting issues when username/password configured

* Fix 2232: Presto - connection formatting issues when username/password configured
This commit is contained in:
Sriharsha Chintalapani 2022-01-16 21:33:17 -08:00 committed by GitHub
parent 276128e8b0
commit b4983764e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ class PrestoConfig(SQLConnectionConfig):
url += f"{quote_plus(self.username)}" url += f"{quote_plus(self.username)}"
if self.password: if self.password:
url += f":{quote_plus(self.password.get_secret_value())}" url += f":{quote_plus(self.password.get_secret_value())}"
url += "@"
url += f"{self.host_port}" url += f"{self.host_port}"
url += f"/{self.catalog}" url += f"/{self.catalog}"
if self.database: if self.database: