Creating a Connection to ClickHouse
Introduction
Section titled “Introduction”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.
Connection data required
Section titled “Connection data required”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

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

-
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.

-
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.
Creating a Dynamic Data Connection
Section titled “Creating a Dynamic Data Connection”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.
-
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.
-
ClickHouse Playground Connection
Section titled “ClickHouse Playground Connection”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.
Known Limitations:
Section titled “Known Limitations:”- CSV uploads are not supported.





