Clickhouse
Clickhouse source connector
Descriptionâ
Used to read data from Clickhouse.
Key featuresâ
supports query SQL and can achieve projection effect.
tip
Reading data from Clickhouse can also be done using JDBC
Optionsâ
name | type | required | default value |
---|---|---|---|
host | string | yes | - |
database | string | yes | - |
sql | string | yes | - |
username | string | yes | - |
password | string | yes | - |
schema | config | No | - |
common-options | no | - |
host [string]â
ClickHouse
cluster address, the format is host:port
, allowing multiple hosts
to be specified. Such as "host1:8123,host2:8123"
.
database [string]â
The ClickHouse
database
sql [string]â
The query sql used to search data though Clickhouse server
username [string]â
ClickHouse
user username
password [string]â
ClickHouse
user password
schema [Config]â
fields [Config]â
the schema fields of upstream data
common optionsâ
Source plugin common parameters, please refer to Source Common Options for details
Examplesâ
source {
Clickhouse {
host = "localhost:8123"
database = "default"
sql = "select * from test where age = 20 limit 100"
username = "default"
password = ""
result_table_name = "test"
}
}
Changelogâ
2.2.0-beta 2022-09-26â
- Add ClickHouse Source Connector
2.3.0-beta 2022-10-20â
- [Improve] Clickhouse Source random use host when config multi-host (3108)