Docs / ClickHouse

← Databases

ClickHouse

The driver talks to ClickHouse's HTTP interface and reads results in the Arrow stream format. It is part of the app; nothing is downloaded. It browses, queries and designs tables, but does not edit rows in the grid.

Connect

You pasteRead as
clickhouse://default@ch.example.com/logsHTTP on port 8123, database logs
clickhouse://ch.example.com/logs?sslmode=requireHTTPS; with no port in the URL, 8443
jdbc:clickhouse://host:8123/dba JDBC URL
https://host:8443 in a ClickHouse formthe HTTP(S) URL of the server

Use the HTTP port, not the native one (9000). The user is default when empty; the password is sent in the X-ClickHouse-Key header. The Database field runs USE <database> after connecting.

TLS is chosen by the mode, since HTTP cannot negotiate it: disable and prefer (the default) connect in plain HTTP; require and the verify modes use HTTPS. With HTTPS the default port is 8443 when the URL gives none; if you fill in the form, type the port yourself. require does not check the certificate, verify-ca checks the chain, verify-full also the host name; sslrootcert names your CA's file, otherwise the system's trusted certificates are used.

A connection is one HTTP session: SET, USE and temporary tables last between statements.

Privileges

Browsing reads system.databases, system.tables, system.columns and system.data_skipping_indices; the login sees what ClickHouse lets it see there. The tabs read:

What works

What does not

Agents

A read-only agent, and a read-only connection, send every statement except SET with readonly = 1, so the server refuses writes and the table functions that reach other servers or its files (url, s3, remote, file and the like). An agent's statement is also checked against a list of table functions that read local data only. See Agents and the CLI. Terminal mode is not available: clickhouse-client uses the native port.

Known limits

Tested on

The conformance suite runs on ClickHouse 26.3. Older ClickHouse versions are not tested, and the app has no minimum version for it.

See also: Connecting, Troubleshooting.