diff --git a/airbyte-integrations/connectors/destination-databend/Dockerfile b/airbyte-integrations/connectors/destination-databend/Dockerfile index 6619497f7f83..dabbd4dc78e9 100644 --- a/airbyte-integrations/connectors/destination-databend/Dockerfile +++ b/airbyte-integrations/connectors/destination-databend/Dockerfile @@ -34,5 +34,5 @@ COPY destination_databend ./destination_databend ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.0 +LABEL io.airbyte.version=0.1.1 LABEL io.airbyte.name=airbyte/destination-databend diff --git a/airbyte-integrations/connectors/destination-databend/destination_databend/client.py b/airbyte-integrations/connectors/destination-databend/destination_databend/client.py index 989cd1dd1059..5d8b6f6a04c4 100644 --- a/airbyte-integrations/connectors/destination-databend/destination_databend/client.py +++ b/airbyte-integrations/connectors/destination-databend/destination_databend/client.py @@ -6,8 +6,7 @@ class DatabendClient: - def __init__(self, protocol: str, host: str, port: int, database: str, table: str, username: str, password: str = None): - self.protocol = protocol + def __init__(self, host: str, port: int, database: str, table: str, username: str, password: str = None): self.host = host self.port = port self.database = database @@ -16,6 +15,6 @@ def __init__(self, protocol: str, host: str, port: int, database: str, table: st self.password = password def open(self): - handle = connector.connect(f"{self.protocol}://{self.username}:{self.password}@{self.host}:{self.port}").cursor() + handle = connector.connect(f"https://{self.username}:{self.password}@{self.host}:{self.port}").cursor() return handle diff --git a/airbyte-integrations/connectors/destination-databend/destination_databend/spec.json b/airbyte-integrations/connectors/destination-databend/destination_databend/spec.json index 9605df680ada..ee4160a330c8 100644 --- a/airbyte-integrations/connectors/destination-databend/destination_databend/spec.json +++ b/airbyte-integrations/connectors/destination-databend/destination_databend/spec.json @@ -24,16 +24,6 @@ "type" : "string", "order" : 0 }, - "protocol" : { - "title" : "Protocol", - "description" : "Protocol of the host.", - "type" : "string", - "examples" : [ - "https" - ], - "default" : "https", - "order" : 1 - }, "port" : { "title" : "Port", "description" : "Port of the database.", diff --git a/airbyte-integrations/connectors/destination-databend/unit_tests/test_databend_destination.py b/airbyte-integrations/connectors/destination-databend/unit_tests/test_databend_destination.py index eb6bbbffe616..6466b7eaa97c 100644 --- a/airbyte-integrations/connectors/destination-databend/unit_tests/test_databend_destination.py +++ b/airbyte-integrations/connectors/destination-databend/unit_tests/test_databend_destination.py @@ -32,7 +32,6 @@ def config() -> Dict[str, str]: "username": "root", "password": "root", "host": "localhost", - "protocol": "http", "port": 8081, "table": "default", } diff --git a/docs/integrations/destinations/databend.md b/docs/integrations/destinations/databend.md index 08339cf0ab32..2279c844320e 100644 --- a/docs/integrations/destinations/databend.md +++ b/docs/integrations/destinations/databend.md @@ -51,4 +51,9 @@ You should now have all the requirements needed to configure Databend as a desti ## Changelog -######TODO: more info \ No newline at end of file + +| Version | Date | Pull Request | Subject | +|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------| +| 0.1.1 | 2022-01-09 | [21182](https://github.com/airbytehq/airbyte/pull/21182) | Remove protocol option and enforce HTTPS | +| 0.1.0 | 2022-01-09 | [20909](https://github.com/airbytehq/airbyte/pull/20909) | Destination Databend | +