DataLakeCatalog database engine enables you to connect ClickHouse to external
data catalogs and query open table format data without the need for data duplication.
This transforms ClickHouse into a powerful query engine that works seamlessly with
your existing data lake infrastructure.
Supported catalogs
TheDataLakeCatalog engine supports the following data catalogs:
- AWS Glue Catalog - For Iceberg tables in AWS environments
- Databricks Unity Catalog - For Delta Lake and Iceberg tables
- Hive Metastore - Traditional Hadoop ecosystem catalog
- REST Catalogs - Any catalog supporting the Iceberg REST specification
Creating a database
You will need to enable the relevant settings below to use theDataLakeCatalog engine:
DataLakeCatalog engine can be created using the following syntax:
Examples
See below sections for examples of using theDataLakeCatalog engine:
- Unity Catalog
- Unity Catalog with Delta Lake and Iceberg tables
With
use_unity_catalog_v2 = 1, theunitycatalog serves both Delta Lake and Iceberg tables, detecting the format of each table.
catalog_credential accepts an OAuth service principal as <client_id>:<client_secret>,
a personal access token (dapi...), or a pre-obtained OAuth token.
- Glue Catalog
- OneLake Catalog
Can be used by enabling
allow_database_iceberg.
onelake_bearer_token to a pre-obtained
bearer token (scoped to https://storage.azure.com) instead of
onelake_client_id/onelake_client_secret. ClickHouse does not refresh the token, so the
database must be recreated after it expires.