In the previous section, you queried open table formats by passing storage paths directly. In practice, most organizations manage table metadata through a data catalog - a central registry that tracks table locations, schemas, and partitions. When you connect ClickHouse to a catalog using theDocumentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
DataLakeCatalog database engine, the entire catalog is exposed as a ClickHouse database. Every table in the catalog appears automatically and can be queried with full ClickHouse SQL - no need to know individual table paths or manage credentials per table.
This guide walks through connecting to Databricks Unity Catalog. ClickHouse also supports the following catalogs - refer to each reference guide for full setup instructions:
| Catalog | Reference guide |
|---|---|
| AWS Glue | AWS Glue catalog |
| Iceberg REST Catalog | REST catalog |
| Lakekeeper | Lakekeeper catalog |
| Project Nessie | Nessie catalog |
| Microsoft OneLake | Fabric OneLake |
Connecting to a Unity Catalog
For example purposes, we’ll use the Unity catalog. Databricks Unity Catalog provides centralized governance for Databricks lakehouse data. Databricks supports multiple data formats for their lakehouse. With ClickHouse, you can query Unity Catalog tables as both Delta and Iceberg.Integration with the Unity Catalog works for managed and external tables.
This integration is currently only supported on AWS.
Configuring Unity in Databricks
To allow ClickHouse to interact with Unity catalog, you need to make sure your Unity Catalog is configured to allow interaction with an external reader. This can be achieved by following the “Enable external data access to Unity Catalog” guide. In addition to enabling external access, ensure the principal configuring the integration has theEXTERNAL USE SCHEMA privilege on the schema containing the tables.
Once your catalog is configured, you must generate credentials for ClickHouse. Two different methods can be used, depending on your interaction mode with Unity:
- For Iceberg clients, authenticate with a service principal.
- For Delta clients, use a Personal Access Token (PAT).
Connect to the catalog
With the credentials, you can connect to the relevant endpoint to query the Iceberg or Delta tables.- Delta
- Iceberg
The Unity catalog should be used for accessing data in the Delta format.
List tables
Once the connection has been established to your catalog, you can list the tables.Exploring table schemas
We can use the standardSHOW CREATE TABLE command to see how the tables were created.
Backticks requiredNote the need to specify the namespace and the table name, surrounded with backticks - ClickHouse doesn’t support more than one namespace.