diff --git a/tools/torchci/clickhouse.py b/tools/torchci/clickhouse.py index f68262c07d..9f504f400b 100644 --- a/tools/torchci/clickhouse.py +++ b/tools/torchci/clickhouse.py @@ -9,11 +9,8 @@ @lru_cache(maxsize=1) def get_clickhouse_client() -> Any: - endpoint = os.environ["CLICKHOUSE_ENDPOINT"] - if endpoint.startswith("https://"): - endpoint = endpoint[len("https://") :] return clickhouse_connect.get_client( - host=endpoint, + host=os.environ["CLICKHOUSE_ENDPOINT"], user=os.environ["CLICKHOUSE_USERNAME"], password=os.environ["CLICKHOUSE_PASSWORD"], secure=True,