iceberg table function and Iceberg table engine, and connects to Iceberg catalogs via DataLakeCatalog. This page describes using OLake Go to populate Iceberg tables that ClickHouse queries.
Prerequisites
- OLake Go, self-hosted via Docker Compose, Kubernetes (Helm), or standalone Docker container
- A source system OLake Go supports: PostgreSQL, MySQL, MongoDB, Oracle, MSSQL, DB2, Kafka, or Amazon S3
- ClickHouse Cloud or self-hosted ClickHouse with Iceberg read support
- An Iceberg catalog that OLake Go writes to and ClickHouse can connect to — for example AWS Glue, Hive Metastore, REST, Unity Catalog, Polaris, or BigLake (see the OLake Go catalog compatibility matrix and ClickHouse
DataLakeCatalogcatalog types)
Setup
- Deploy OLake Go following the OLake Go quickstart.
- Configure a source (for example PostgreSQL or MySQL) and an Iceberg destination on S3 or S3-compatible storage.
- Choose a supported Iceberg catalog. The catalog must be supported by both OLake Go and ClickHouse’s
DataLakeCatalog(catalog types:glue,rest,hive,unity,onelake,horizon). - Run a sync to write Iceberg tables.
- In ClickHouse, query the Iceberg data using the
icebergtable function orIcebergtable engine, or connect the catalog viaDataLakeCatalog.
Example: PostgreSQL to Iceberg, queried in ClickHouse
- In OLake Go, create a PostgreSQL source and an Iceberg destination on Amazon S3 using the AWS Glue catalog.
- Run a full refresh or CDC sync to replicate tables into Iceberg format.
- In ClickHouse, create a table over the Iceberg data:
- Query the replicated data:
DataLakeCatalog and query the catalog’s tables directly.
Known limitations
- OLake Go writes Iceberg tables; ClickHouse reads them. ClickHouse also supports modifications of Iceberg tables (starting from version 25.7), but that is a separate ClickHouse capability and is not provided by OLake Go.
- Equality deletes are supported from ClickHouse version 25.8. Earlier versions may not read all delete formats that OLake Go can write. See the ClickHouse Iceberg documentation for the current state of delete-format support.
- Not all catalogs supported by OLake Go are available as
DataLakeCatalogcatalog types in ClickHouse. Check both the OLake Go catalog compatibility matrix and theDataLakeCatalogdocumentation before choosing a catalog.
Troubleshooting
Tables do not appear in ClickHouse
Confirm that the Iceberg catalog OLake Go writes to is one ClickHouse can connect to, and that the catalog connection parameters and credentials are correct. SeeDataLakeCatalog for supported catalog types.