ClickhouseAnnouncement
ClickHouse now writes Apache Iceberg tables to Microsoft OneLake
Summary
ClickHouse previously wrote Iceberg tables to object storage without catalog registration, limiting their discoverability. Now it writes Iceberg tables directly to Microsoft OneLake, registering in the catalog via Iceberg REST Table APIs and securing with OneLake Security. Use cases include AI agents monitoring order data and publishing real-time anomaly detection results to OneLake, and applications writing directly via ClickHouse without a separate ingestion layer. The connection uses the DataLakeCatalog engine with catalog_type=‘onelake’, warehouse parameter combining workspace and lakehouse IDs, and Microsoft Entra ID service principal authentication; writing uses standard INSERT INTO syntax with backtick-quoted namespace.table names. OneLake automatically syncs Iceberg and Delta Lake formats, provides governance with lineage tracking and data protection, and its security APIs are opening to third-party engines; this is the first catalog to support writes from ClickHouse, with more catalogs planned.
Approach / What changed
Using the DataLakeCatalog engine with catalog_type=‘onelake’, warehouse parameter combining workspace and lakehouse IDs, and Microsoft Entra ID service principal authentication. Writing uses standard INSERT INTO syntax with backtick-quoted namespace.table names.
Takeaways
ClickHouse writes Iceberg tables to OneLake using the DataLakeCatalog engine and INSERT INTO syntax, with tables automatically registered in the OneLake catalog.
OneLake automatically syncs Delta Lake and Iceberg formats, so data written as Iceberg is readable by Delta Lake tools.
OneLake Security provides table, row, and column-level access controls, and Microsoft announced APIs are opening to third-party engines.
FAQ
How do I set up ClickHouse to write to OneLake?
Use CREATE DATABASE with DataLakeCatalog engine, set catalog_type='onelake', provide workspace and lakehouse IDs in the warehouse parameter, and authenticate via Microsoft Entra ID service principal. Then use INSERT INTO to write.
What are the use cases for writing to OneLake from ClickHouse?
AI agents can monitor order data, detect anomalies, and publish daily summary tables to OneLake for consumption by Power BI and Fabric Spark. Applications can write directly to OneLake via ClickHouse without a separate ingestion layer.
Does OneLake support both Iceberg and Delta Lake?
Yes, OneLake keeps Delta Lake and Iceberg in sync automatically, so a table written in one format is readable in the other.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.