Skip to main content
OLake Go is a high-performance, open-source EL (Extract–Load) platform that bridges operational databases and open lakehouse storage — writing Apache Iceberg tables or Parquet files on Amazon S3. OLake Go supports incremental sync, Change Data Capture (CDC), and stateful, resumable syncs. ClickHouse reads Iceberg tables natively through its 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 DataLakeCatalog catalog types)

Setup

  1. Deploy OLake Go following the OLake Go quickstart.
  2. Configure a source (for example PostgreSQL or MySQL) and an Iceberg destination on S3 or S3-compatible storage.
  3. 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).
  4. Run a sync to write Iceberg tables.
  5. In ClickHouse, query the Iceberg data using the iceberg table function or Iceberg table engine, or connect the catalog via DataLakeCatalog.

Example: PostgreSQL to Iceberg, queried in ClickHouse

  1. In OLake Go, create a PostgreSQL source and an Iceberg destination on Amazon S3 using the AWS Glue catalog.
  2. Run a full refresh or CDC sync to replicate tables into Iceberg format.
  3. In ClickHouse, create a table over the Iceberg data:
  1. Query the replicated data:
Alternatively, connect the AWS Glue catalog to ClickHouse via 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 DataLakeCatalog catalog types in ClickHouse. Check both the OLake Go catalog compatibility matrix and the DataLakeCatalog documentation 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. See DataLakeCatalog for supported catalog types.

Deleted rows are still visible

Confirm that the ClickHouse version supports the delete format OLake Go wrote (equality, positional, or deletion vectors). Equality deletes require ClickHouse 25.8 or later. See the Iceberg table function documentation for details.

Further reading