Skip to content

Creating a Connection to ClickHouse

4 min read · Updated 4 Nov 2026

In this article, we show you how to connect your Astrato workspace to ClickHouse. It’s designed to be a quick process and easy to follow.

Not sure if Astrato is the right solution for you? Connect to the ClickHouse playground and see Astrato in action on ClickHouse demo data.



When setting up your data connection, you’ll need to know:

  • Connection details: Host, Port

  • Database credentials: Username, Password

Creating the data connection to ClickHouse

Section titled “Creating the data connection to ClickHouse”
  • Select Data & AI in the sidebar

  • Select the Data Connections tab
    ​

    Data page header with the Data View and Data Connection tabs, Data Connection selected.

  • Click on the New connection button in the top right side of the screen.

    The New connection panel beside the Data Connections list, with a Source grid of Snowflake, Google BigQuery, ClickHouse, Databricks, Amazon Redshift, Supabase, DuckDB, Dremio and PostgreSQL tiles, and Google Sheets and Demo data greyed out

  • Select ClickHouse under Source. The panel becomes New ClickHouse connection.

  • Fill in Host, Port, Username and Password. Port starts at 8443; change it to the secure port your ClickHouse service exposes.

  • Select a Deployment Region if your workspace offers one.

  • Select Validate Connection. A Validation result section confirms the connection.

  • Under Data to use, select a Database. ClickHouse lets you leave it blank.

  • Review the Connection name and select Save connection. The panel shows Connection created.

    A New PostgreSQL connection panel after saving: Connection created with “Choose a schema now, or finish to use this connection.”, a Schema list set to Choose later and a Finish button

  • Select Finish. The connection appears in the Data Connections list.

Finish does not create a semantic layer. Create one from the connection afterwards, and manage resource access to let other people build on it.

The screenshots below show the classic lobby’s Connect to ClickHouse dialog, where these steps used Test connection, Next and an Add Members dialog.

Classic Connect to Clickhouse dialog with Host, Port 9440, User and Password fields and a Test connection button.

Classic Connect to Clickhouse dialog with the Data Connection Name field and a Next button.

Classic Add Members dialog with a user and role list, a Visible to everyone toggle, a Selected panel and a Connect button.

Dynamic data connection is good when connecting users to different projects but using one data model.

The main use case for dynamic connections is combining it with embedded analytics.

To serve OEM solutions.

Setting up a dynamic data connection is similar to setting up a JWT connection.

Follow these steps:

  • Start a new ClickHouse connection as above and enable Use dynamic connection.

  • Fill in Host, Port, Username and Password. These are the default credentials.

  • Select Validate Connection, review the Connection name and select Save connection.

  • Under Connection created, select Add dynamic connection settings. Choose a user from your tenant, enter their host, port, username and password, and select Save user settings. Repeat for each viewer.

  • Select Finish.

Adding settings does not grant access. Manage resource access to define who can use the connection. To change settings later, open Properties → Dynamic connection. See Dynamic connections for the full workflow.

The screenshots below show the classic lobby, where these steps used Test connection, Next and an Add Members dialog.

Classic Connect to ClickHouse form with the Use dynamic connection checkbox ticked and highlighted, above Host, Port, User and Password.

Classic Add Dynamic Connection Settings dialog with a user dropdown per entry, Host, Port, User and Password fields, an Add button and Next.

Classic Add Members dialog with a user and role list, a Selected panel listing the owner and administrators, and a Connect button.

  • Known Limitation

    • Only users who use the same credentials and project as the defaults will be able to edit and see the data in the Semantic Layer Editor

    • The dynamic data connection is only used in published workbooks.

    • Users who aren’t defined in the dynamic connection table won’t be able to see data in the workbook.

Connecting to the ClickHouse playground is simple.

Fill in these details in the connection form:

  • Host: play.clickhouse.com

  • Port: 9440

  • Username: play or explore

  • Password: anything (Astrato won’t use it in the connection)

Select Validate Connection, then Save connection and Finish.

You are now connected to demo data and can see Astrato in action.

  • CSV uploads are not supported.