Closed markusf1895 closed 7 months ago
The version seems to be the problem. Locally it works with image: clickhouse/clickhouse-server:23-alpine
.
Is there a way to get an older version in clickhouse cloud?
Found SET compatibility = '23.12'
on this page: https://clickhouse.com/docs/en/whats-new/changelog
You should use
Client(host='XXXXXXXXXX.eu-central-1.aws.clickhouse.cloud',
or
Client.from_url('clickhouse://XXXXXXXXXX.eu-central-1.aws.clickhouse.cloud'
Describe the bug I am attempting to connect to my cloud instance using the clickhouse_driver package in Python.
When I use telnet XXXXXXXXXX.eu-central-1.aws.clickhouse.cloud 9440, I successfully establish a connection, receiving the following response:
However, when I attempt to connect using the Python package I encounter the following error:
To Reproduce Here my python code.
Expected behavior I expect the connection to be successfully established using the clickhouse_driver package as it was with telnet.
Actual Behavior Encountering a socket.gaierror indicating that the hostname or service name is not known.
Additional Notes Please let me know if there are any additional configurations or steps required to establish the connection successfully.
Versions Environment: Operating System: macOS Sonoma Version 14.3.1 Python Version: 3.8 ClickHouse Version: 24.0.2.54390 clickhouse-driver==0.2.5 Package Versions (requirements.txt):