Configuration
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | yes | — | JDBC connection URL |
user | string | yes | — | Database user |
password | string | yes | — | Database password |
batch_size | int | no | 10,000 | Rows per batch insert |
flush_interval_ms | long | no | 5,000 | Max time (ms) between flushes |
How It Works
- Rows are buffered in memory as they arrive from the pipeline.
- When the buffer reaches
batch_sizeorflush_interval_mselapses since the last flush, a batchINSERTexecutes against the target table. - The
INSERTSQL is dynamically generated from the field names present in each row. - All column names are automatically quoted in the generated SQL to handle reserved words.
Type Coercion
The destination maps pipeline data types to ClickHouse column types as follows:| Data Type | Database Handling |
|---|---|
| String | String column |
| Long | Int64 / UInt64 |
| Integer | Int32 / UInt32 |
| Double | Float64 |
| Boolean | Bool / UInt8 |
| byte[] | Bytes |
| null | Null |