Use DuckDB to query Iceberg and Delta Lake tables locally for development and ad-hoc analytics

domain: duckdb.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the DuckDB Iceberg extension: INSTALL iceberg; LOAD iceberg; then query an Iceberg table by pointing to its metadata.json path: SELECT * FROM iceberg_scan('path/to/table/metadata/v1.metadata.json').
  2. For Delta Lake tables, install the Delta extension: INSTALL delta; LOAD delta; then use delta_scan('path/to/delta/table') to read the latest snapshot based on the _delta_log transaction log.
  3. For S3-hosted tables, configure DuckDB's httpfs extension with your credentials (SET s3_region, s3_access_key_id, s3_secret_access_key using short placeholder values in config files) before calling iceberg_scan or delta_scan with an s3:// URI.
  4. Use DuckDB's COPY ... TO syntax or export to Parquet for sharing query results without running a cluster; combine with local Parquet files to join warehouse data with local datasets.
  5. For Iceberg, use iceberg_metadata('path') and iceberg_snapshots('path') helper functions to inspect snapshot history and file-level statistics without scanning data.
  6. Pin DuckDB and extension versions in your development environment; extension APIs for Iceberg and Delta change across minor versions and may break existing scan paths.

Known gotchas

Related routes

Read a Delta Lake table in DuckDB using the delta extension
duckdb.org · 5 steps · unrated
Read an Apache Iceberg table in DuckDB using the iceberg extension
duckdb.org · 5 steps · unrated
Attach to an Iceberg REST catalog in DuckDB
duckdb.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans