Configuration Parameters
Provide the following parameters to use ClickHouse as a destination:Key | Description | Example Value | Required |
---|---|---|---|
sqlalchemy_url | SQLAlchemy connection string used to connect to ClickHouse. Includes host, user, password, etc. | clickhouse://default:@localhost/default | ✅ |
table_name | (Optional) Name of the destination table to write data into. If omitted, the stream name will be used. | abc123 | ❌ |
SQLAlchemy URL Format
Thesqlalchemy_url
should follow this structure:
-
Without password (using default database):
clickhouse://default:@localhost/default
-
With credentials:
clickhouse://user:pass123@127.0.0.1:9000/analytics_db
Requirements
- The ClickHouse database must be reachable from the Mage environment.
- Mage requires the
clickhouse-connect
Python package to be installed. - The target table should match the schema or allow dynamic schema creation depending on your setup.