Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

DuckDB 6 min read Case study mediumAdept

From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB

Data engineer Matt Martin traces his path from copy-pasting Excel reports through Teradata, BigQuery and heavyweight Spark clusters to DuckDB, which let him query local CSVs, S3 Parquet files and Iceberg tables in a few lines of SQL with no JVM or cluster. He favours DuckLake over Iceberg because it keeps lakehouse metadata in a SQL database. In his experience, catalog operations that take seconds with Iceberg's metadata files resolve in under a millisecond, and the setup is two statements instead of a 20-plus-line Spark configuration. In DuckDB 2.0 alpha, asynchronous I/O cut his S3 read times for 1,000–10,000 files by 67–70%, and ATTACH now accepts expressions such as getenv. The Quack protocol can also serve a DuckLake over HTTP without handing out AWS credentials.

Assumes: SQLobject storage like S3open table formats

Related posts

  • DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub

    Hugging Face mediumAdept

    Every public dataset on the Hugging Face Hub is now automatically converted to Parquet by the dataset viewer and can be queried with SQL through DuckDB. Parquet file URLs come from the datasets-server `/parquet` HTTP endpoint, and DuckDB's `httpfs` extension then runs analytical queries directly against those remote files. Large datasets are sharded into 500MB Parquet chunks, which DuckDB can query together as multiple files.

  • Zero-ETL lakehouses for Postgres people

    Neon easyNovice

    Data lakehouses unbundle an OLAP database into six layers: object storage, raw data formats like Parquet, table formats like Iceberg or Delta Lake, a metadata catalog such as Unity Catalog or DuckLake, compute, and query engines like Spark or DuckDB. This layering gives warehouse-like SQL, ACID and snapshots at close to data-lake cost. The explanation is aimed at Postgres users and covers why OLAP systems favour column-oriented, time-chunked and partitioned storage, why HTAP has lost out to zero-ETL sync between separate OLTP and OLAP systems, and how separating storage from compute shapes the stack. Parquet and Iceberg are emerging as favourites, and the Postgres extensions pg_duckdb, pg_lake and pg_mooncake are highlighted as bridges between Postgres and lakehouses.

  • Ducks in a Column

    DuckDB mediumAdept

    DuckDB stores data by column and processes it in vectors of 2,048 values, which drives its compression, projection pushdown and aggregation speed. A tour built on a duck-sightings dataset shows querying CSV, Parquet, S3 and Hive-partitioned files in place (with zonemap row-group skipping and CSV type sniffing), column-level friendly SQL (EXCLUDE, REPLACE, COLUMNS() with regex or lambdas, FROM-first, STRUCT unpacking, SUMMARIZE), and aggregation shortcuts such as GROUP BY ALL, FILTER, arg_max, PIVOT/UNPIVOT and approximate aggregates. Window functions, QUALIFY, ASOF joins for aligning mismatched time series, and list aggregation round out the examples.

  • ClickHouse is data lake ready

    ClickHouse mediumAdept

    ClickHouse now queries Apache Iceberg and Delta Lake tables in place on S3, GCS and Azure, either directly or through catalogs such as AWS Glue, Unity, Polaris, BigLake, OneLake and Iceberg REST. Teams can load lake data into the native MergeTree engine when they need sub-second, high-concurrency queries, and can write results back to open formats. The groundwork took two years of releases: a native Parquet reader with page-level parallelism that reads about 1.8x faster on ClickBench, integration of the Delta Rust Kernel, Iceberg time travel and DML, and parallel replicas. Worked examples against a 1.29-billion-row NYC taxi Iceberg table show in-place scans taking 50 to 130 seconds before ingestion into MergeTree for faster querying.

  • A behind-the-scenes look at building interactive analysis capabilities in Benchling

    Benchling Engineering mediumAdept

    Benchling's Interactive Analysis runs user data transformations through a stateless, autoscaling EKS service. The web app stages inputs as Parquet in a temporary S3 bucket with a lifecycle policy, and each request spins up its own in-memory DuckDB engine over Arrow tables. An ExecutionEngine wrapper uses Arrow's zero-copy interop to send SQL-like operations to DuckDB and advanced statistics such as 4PL curve fits to Pandas/NumPy, while a BenchlingDataFrame interface preserves column types. The team skipped session-affine caching because reloading from S3 added only about 350ms even on large datasets. They also rejected on-demand containers for interactive requests because spin-up takes seconds, keeping them for large or async jobs, and they are refactoring to return partial result previews instead of full S3 downloads.

The quest for software engineering knowledge.

Look:
Layout: