Skip to content
DuckDB community extension

delta_export

Export DuckLake catalog tables to Delta Lake format

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL delta_export FROM community;
LOAD delta_export FROM community;

Try it in a temporary SQL session with delta_export already loaded. Queries run in this tab; examples using files or services need their own setup.

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

SQL
-- Load required extensions
LOAD ducklake;

-- Attach a DuckLake catalog
ATTACH 'ducklake:metadata.ducklake' AS lake (DATA_PATH '/path/to/data');
USE lake;

-- Create and populate a table
CREATE TABLE orders (id INTEGER, amount DOUBLE);
INSERT INTO orders VALUES (1, 99.99), (2, 149.50);

-- Export all DuckLake tables to Delta Lake format
CALL delta_export();

-- Or export only some tables or schemas
CALL delta_export(tables := ['main.orders']);  -- or schemas := ['sales']

Provided by djouallah. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

Delta Export reads DuckLake internal metadata and writes Delta Lake checkpoint files (Parquet, JSON transaction log, and _last_checkpoint) for each table in the catalog.

This enables interoperability between DuckLake-managed data and any system that reads Delta Lake format, such as Apache Spark, Databricks, Microsoft Fabric, and other Delta-compatible engines.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
djouallah/delta_export
License
MIT
Maintainers
djouallah
Written in
C++
Build source
8defbf4174d4
Build definition
Community descriptor