Ducks in a Column
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.
Related posts
- Even Friendlier SQL with DuckDB
DuckDB mediumAdeptDuckDB extends SQL syntax with features that simplify everyday queries and enable dynamic analysis. Additions include reusable column aliases within a SELECT, COLUMNS() for selecting and transforming columns by regex, EXCLUDE/REPLACE or lambda, automatic JSON-to-nested-type conversion with dot notation, FROM-first queries, dot-operator function chaining, UNION/INSERT BY NAME, and dynamic PIVOT/UNPIVOT that need no hardcoded column values. Each feature is shown next to the verbose standard-SQL equivalent it replaces.
- DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub
Hugging Face mediumAdeptEvery 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.
- From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB
DuckDB mediumAdeptData 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.
- Maximizing Your Delta Scan Performance in DuckDB
DuckDB mediumAdeptDuckDB's delta extension v0.3.0 runs TPC-DS SF1 on S3 more than 3× faster than v0.1.0, mostly because cardinality information now reaches DuckDB's join order optimizer. Three further features speed up Delta reads. ATTACH caches metadata within a transaction, giving a 1.13× speedup, and PIN_SNAPSHOT keeps it across queries for 1.47×, at the cost of missing later table updates. File skipping uses Delta's per-file statistics to prune files with constant or dynamic filters: an id<100 query scanned 1 of 2,000 files and took 0.5s, against 17s for a raw parquet_scan. Partition information pushdown lets partition-aware aggregation exploit existing partitioning, demonstrated with TPC-H Q1.
- ClickHouse Release 25.3
ClickHouse mediumAdept
ClickHouse 25.3 adds query support for AWS Glue and Unity lakehouse catalogs and declares the columnar JSON type, along with the Variant and Dynamic types it is built on, production-ready. It also introduces a query condition cache that reuses scan results across queries with identical selective WHERE predicates. Reads of external data such as S3 are now distributed across a cluster automatically when parallel replicas are enabled. Under the hood, the initiator node dispatches files dynamically to workers, and a 10-node example ran 4x faster. New functions include arraySymmetricDifference and estimateCompressionRatio, which compares codecs like LZ4, ZSTD and Gorilla on a column and shows how column type and sort order change the compression ratio.