ClickHouse Connector¶
Strake supports querying high-performance ClickHouse OLAP databases. It leverages dialect-specific translations to push down analytical aggregations and filters to speed up execution over billions of rows.
1. Connection Syntax¶
ClickHouse connection URI is defined under the connection field of your SQL configuration, supporting ClickHouse wire and HTTP connections:
Connection Example¶
2. Configuration Parameters¶
ClickHouse database is registered as a sql source type with dialect: clickhouse:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dialect |
string | Yes | - | Must be clickhouse. |
connection |
string | Yes | - | ClickHouse connection URI containing host, credentials, and port. |
pool_size |
integer | No | 10 |
Maximum size of the query connection pool. |
3. Configuration Snippet¶
Add the following block to your sources.yaml to register a ClickHouse source: