Connect
| Host | datasharing.pennylane.com |
| Port | 443 |
| TLS | required |
| Protocol | ClickHouse HTTP |
| User | u_<id> |
| Database | pennylane (also etl, practice_management) |
This host speaks HTTP only. clickhouse-client speaks the native TCP protocol, so this command fails:
clickhouse-client \
--host datasharing.pennylane.com \
--port 443 \
--secure \
--user 'u_123' \
--database pennylane
Code: 102. DB::NetException: Unexpected packet from server
(expected Hello or Exception, got ). (UNEXPECTED_PACKET_FROM_SERVER)
Use one of the HTTP clients below. The database is a query parameter. A path such as /pennylane returns HTTP 400 unsupported path.
curl
curl --fail-with-body \
--user 'u_123:<password>' \
--data-binary 'SELECT 1' \
'https://datasharing.pennylane.com/?database=pennylane'
JDBC
jdbc:clickhouse:https://datasharing.pennylane.com:443/?database=pennylane
https:// already enables TLS. Do not append a path after the port.
Python
clickhouse-connect uses HTTP. The native package clickhouse-driver fails the same way as clickhouse-client.
import clickhouse_connect
client = clickhouse_connect.get_client(
host="datasharing.pennylane.com",
port=443,
username="u_123",
password="<password>",
database="pennylane",
secure=True,
)
Query shape
SELECT
id,
name
FROM pennylane.companies
WHERE id = 123456
Always qualify the database. Every table that has company_id must be filtered on company_id. On companies, filter id.
The Pennylane product screen does not show this host yet. Use the table at the top of this page. Limit errors are on the troubleshooting page.