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.
Host — your ClickHouse hostname (e.g. your-instance.clickhouse.cloud or your server address).
Port — the HTTP interface port. Use 8443 for HTTPS (ClickHouse Cloud) or 8123 for plain HTTP (self-hosted).
Database / Username — default to default if not specified.
Password — optional for unauthenticated local instances.
Use HTTPS — keep enabled for any remote or Cloud instance.
UPDATE and DELETE are 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.
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.
Execute a SELECT query on a ClickHouse database
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) querystring Yes SQL SELECT query to execute
Parameter Type Description messagestring Operation status message rowsarray Array of rows returned from the query rowCountnumber Number of rows returned
Execute raw SQL (DDL, mutations, or queries) on a ClickHouse database
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) querystring Yes Raw SQL statement to execute
Parameter Type Description messagestring Operation status message rowsarray Array of rows returned from the statement rowCountnumber Number of rows returned or affected
Insert a row into a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to insert data into dataobject Yes Data object to insert (key-value pairs mapping column names to values)
Parameter Type Description messagestring Operation status message rowsarray Inserted rows (empty for ClickHouse inserts) rowCountnumber Number of rows inserted
Insert multiple rows into a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table to insert into rowsjson Yes Array of row objects to insert, e.g. [{"id":1,"name":"a"},{"id":2,"name":"b"}]
Parameter Type Description messagestring Operation status message rowsarray Inserted rows (empty for ClickHouse inserts) rowCountnumber Number of rows inserted
Update rows in a ClickHouse table via an ALTER TABLE ... UPDATE mutation
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to update data in dataobject Yes Data object with fields to update (key-value pairs) wherestring Yes WHERE clause condition (without the WHERE keyword)
Parameter Type Description messagestring Operation status message rowsarray Updated rows (empty for ClickHouse mutations) rowCountnumber Number of rows written by the mutation
Delete rows from a ClickHouse table via an ALTER TABLE ... DELETE mutation
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to delete data from wherestring Yes WHERE clause condition (without the WHERE keyword)
Parameter Type Description messagestring Operation status message rowsarray Deleted rows (empty for ClickHouse mutations) rowCountnumber Number of rows affected by the mutation
List all databases on a ClickHouse server
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true)
Parameter Type Description messagestring Operation status message rowsarray List of databases with engine and comment rowCountnumber Number of rows returned
List tables in the connected ClickHouse database
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true)
Parameter Type Description messagestring Operation status message rowsarray Array of rows returned from the query rowCountnumber Number of rows returned
Describe the columns of a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to describe
Parameter Type Description messagestring Operation status message rowsarray Array of rows returned from the query rowCountnumber Number of rows returned
Get the CREATE TABLE statement (DDL) for a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to get the CREATE statement for
Parameter Type Description messagestring Operation status message ddlstring The CREATE TABLE statement
Count rows in a ClickHouse table, optionally filtered
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to count rows in wherestring No Optional WHERE clause condition without the WHERE keyword
Parameter Type Description messagestring Operation status message countnumber Number of rows
Introspect a ClickHouse database to retrieve table structures, columns, and engines
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to introspect usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true)
Parameter Type Description messagestring Operation status message tablesarray Array of table schemas with columns and engines ↳ name string Table name ↳ database string Database the table belongs to ↳ engine string Table engine (e.g., MergeTree, Log) ↳ totalRows number Approximate total number of rows in the table ↳ columns array Table columns ↳ name string Column name ↳ type string ClickHouse data type (e.g., UInt32, String, DateTime) ↳ defaultKind string Kind of default expression (DEFAULT, MATERIALIZED, ALIAS) ↳ defaultExpression string Default value expression for the column ↳ isInPrimaryKey boolean Whether the column is part of the primary key ↳ isInSortingKey boolean Whether the column is part of the sorting key
Create a new database on a ClickHouse server
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) namestring Yes Name of the database to create
Parameter Type Description messagestring Operation status message
Drop a database from a ClickHouse server
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) namestring Yes Name of the database to drop
Parameter Type Description messagestring Operation status message
Create a new MergeTree-family table in ClickHouse
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Name of the table to create columnsjson Yes Array of column definitions, each an object with name and type, e.g. [{"name":"id","type":"UInt64"},{"name":"ts","type":"DateTime"}] enginestring No Table engine (default MergeTree) orderBystring Yes ORDER BY expression, e.g. "id" or "(id, ts)" partitionBystring No Optional PARTITION BY expression, e.g. toYYYYMM(ts)
Parameter Type Description messagestring Operation status message
Drop a table from a ClickHouse database
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to drop
Parameter Type Description messagestring Operation status message
Remove all rows from a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to truncate
Parameter Type Description messagestring Operation status message
Rename a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Current table name newTablestring Yes New table name
Parameter Type Description messagestring Operation status message
Trigger a merge of table parts via OPTIMIZE TABLE
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table to optimize finalboolean No Force a merge to a single part using FINAL
Parameter Type Description messagestring Operation status message
List active partitions for a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name to inspect partitions for
Parameter Type Description messagestring Operation status message rowsarray Array of rows returned from the query rowCountnumber Number of rows returned
Drop a partition from a ClickHouse table
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring Yes Table name partitionstring Yes Partition expression, e.g. '2024-01' or 202401
Parameter Type Description messagestring Operation status message
List mutations (async ALTER UPDATE/DELETE) for the connected database
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring No Optional table name to filter mutations onlyRunningboolean No Only show mutations that are still running
Parameter Type Description messagestring Operation status message rowsarray Array of mutation rows rowCountnumber Number of rows returned
List currently running queries on a ClickHouse server
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true)
Parameter Type Description messagestring Operation status message rowsarray Array of rows returned from the query rowCountnumber Number of rows returned
Kill a running query by its query ID
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) queryIdstring Yes The query_id of the running query to kill
Parameter Type Description messagestring Operation status message rowsarray Kill status rows rowCountnumber Number of rows returned
Get row counts and on-disk size for tables in the connected database
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true) tablestring No Optional table name to get stats for
Parameter Type Description messagestring Operation status message rowsarray Array of table stats rows rowCountnumber Number of rows returned
List configured clusters, shards, and replicas
Inputs and outputsParameter Type Required Description hoststring Yes ClickHouse server hostname (e.g., your-instance.clickhouse.cloud) portnumber Yes ClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP) databasestring Yes Database name to connect to usernamestring Yes ClickHouse username passwordstring No ClickHouse password secureboolean No Use a secure HTTPS connection (default: true)
Parameter Type Description messagestring Operation status message rowsarray Array of cluster node rows rowCountnumber Number of rows returned