Skip to content

ClickHouse (Destination)

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy

Loads data into ClickHouse over HTTP.

Configuration

yaml
warehouse:
  kind: clickhouse
  url: http://localhost:8123
  database: default
  user: default
  password: ${CLICKHOUSE_PASSWORD}
FieldDefaultDescription
urlhttp://localhost:8123ClickHouse HTTP URL
databaseDatabase name
userdefaultUsername
passwordPassword

CLI

bash
skippr connect warehouse clickhouse \
  --url http://localhost:8123 \
  --database default \
  --user default \
  --password "secret"
FlagDescription
--urlHTTP interface URL (default: http://localhost:8123)
--databaseDatabase name (default: default)
--userUsername (default: default)
--passwordPassword

Authentication

Use the configured ClickHouse user and password, or rely on the default local user for development. For security best practices, we strongly advise against storing the password in skippr.yaml. Use environment variable interpolation instead: replace the password value with your own ${ENV_VAR} reference.

The relevant part of skippr.yaml looks like this:

yaml
warehouse:
  kind: clickhouse
  password: ${CLICKHOUSE_PASSWORD}

Set the env var before running skippr:

macOS / Linux

bash
export CLICKHOUSE_PASSWORD="secret"

Windows PowerShell

powershell
$env:CLICKHOUSE_PASSWORD = "secret"

Windows Command Prompt

cmd
set CLICKHOUSE_PASSWORD=secret

Permissions or Network Requirements

The ClickHouse user needs write access to the target database and tables, and the runner must be able to reach the ClickHouse HTTP endpoint.

Troubleshooting

SymptomFix
authentication failedVerify the ClickHouse user, password, URL, and database name.
writes succeed but deduped state looks delayedThis destination relies on ReplacingMergeTree merges. Use FINAL for point-in-time correctness when querying fresh data.

CDC Support

ClickHouse supports CDC with final-state reconciliation using ReplacingMergeTree engine semantics. Skippr automatically creates _skippr_order_token columns and tombstone tables.

See CDC Destinations -- ClickHouse for details.

Next steps

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy