Read an Apache Iceberg table in DuckDB using the iceberg extension

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

Steps

  1. Install and load the extension: INSTALL iceberg; LOAD iceberg
  2. For local or S3-backed tables, call the table function: SELECT * FROM iceberg_scan('path/to/iceberg/table/')
  3. To read a specific snapshot, pass the snapshot_id parameter: SELECT * FROM iceberg_scan('path/to/table/', snapshot_id=3821550127947089317)
  4. For S3 paths, first configure httpfs credentials with CREATE SECRET or SET s3_* settings, then reference the s3:// URI in iceberg_scan
  5. Use DESCRIBE SELECT * FROM iceberg_scan(...) to inspect the inferred schema before querying

Known gotchas

Related routes

Read a Delta Lake table in DuckDB using the delta extension
duckdb.org · 5 steps · unrated
Use DuckDB to query Iceberg and Delta Lake tables locally for development and ad-hoc analytics
duckdb.org · 6 steps · unrated
Attach to an Iceberg REST catalog in DuckDB
duckdb.org · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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