Use ClickHouse to query and insert analytical data, manage databases and tables, inspect schemas and system state, and execute SQL.
The block uses ClickHouse’s HTTP interface. The endpoint must be reachable from the Sim execution runtime and allowed by its network policy.
Connection details
- Host — your ClickHouse hostname (e.g.
your-instance.clickhouse.cloudor your server address). - Port — the HTTP interface port. Use
8443for HTTPS (ClickHouse Cloud) or8123for plain HTTP (self-hosted). - Database / Username — default to
defaultif not specified. - Password — optional for unauthenticated local instances.
- Use HTTPS — keep enabled for any remote or Cloud instance.
Mutations and network access
UPDATEandDELETEare implemented as ClickHouse mutations (ALTER TABLE ... UPDATE/DELETE). Mutations run asynchronously in the background, so the affected row count is not returned immediately.- ClickHouse is optimized for bulk inserts. Prefer batching many rows per insert over many single-row inserts.
- Private and internal hosts are blocked by default. Self-hosted operators can configure an explicit database egress allowlist; a host must also be reachable from the runtime.
Use the block
Query and insert data, manage databases and tables, inspect schemas, monitor mutations and running queries, manage partitions, and execute raw SQL over the ClickHouse HTTP interface.
Actions
ClickHouse Query
Execute a SELECT query on a ClickHouse database
ClickHouse Execute
Execute raw SQL (DDL, mutations, or queries) on a ClickHouse database
ClickHouse Insert
Insert a row into a ClickHouse table
ClickHouse Insert Rows
Insert multiple rows into a ClickHouse table
ClickHouse Update
Update rows in a ClickHouse table via an ALTER TABLE ... UPDATE mutation
ClickHouse Delete
Delete rows from a ClickHouse table via an ALTER TABLE ... DELETE mutation
ClickHouse List Databases
List all databases on a ClickHouse server
ClickHouse List Tables
List tables in the connected ClickHouse database
ClickHouse Describe Table
Describe the columns of a ClickHouse table
ClickHouse Show Create Table
Get the CREATE TABLE statement (DDL) for a ClickHouse table
ClickHouse Count Rows
Count rows in a ClickHouse table, optionally filtered
ClickHouse Introspect
Introspect a ClickHouse database to retrieve table structures, columns, and engines
ClickHouse Create Database
Create a new database on a ClickHouse server
ClickHouse Drop Database
Drop a database from a ClickHouse server
ClickHouse Create Table
Create a new MergeTree-family table in ClickHouse
ClickHouse Drop Table
Drop a table from a ClickHouse database
ClickHouse Truncate Table
Remove all rows from a ClickHouse table
ClickHouse Rename Table
Rename a ClickHouse table
ClickHouse Optimize Table
Trigger a merge of table parts via OPTIMIZE TABLE
ClickHouse List Partitions
List active partitions for a ClickHouse table
ClickHouse Drop Partition
Drop a partition from a ClickHouse table
ClickHouse List Mutations
List mutations (async ALTER UPDATE/DELETE) for the connected database
ClickHouse List Running Queries
List currently running queries on a ClickHouse server
ClickHouse Kill Query
Kill a running query by its query ID
ClickHouse Table Stats
Get row counts and on-disk size for tables in the connected database
ClickHouse List Clusters
List configured clusters, shards, and replicas