Skip to content

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

ClickHouse 22 min read Deep dive mediumAdept

ClickHouse and Parquet: A foundation for fast Lakehouse analytics

ClickHouse queries Parquet files directly, without ingestion, through a format-specific reader that currently parses via Arrow and then converts into ClickHouse's in-memory format. Performance rests on two things: parallelism and I/O reduction. Parallelism comes from prefetch threads, parsing threads, file streams and processing lanes. File streams are computed as min(max_threads, num_files), and parsing threads per file as max(max_parsing_threads / num_files, 1), with EXPLAIN Pipeline examples showing the resulting plans. A third native reader, "Yet Another Parquet Reader", is in development to drop the Arrow layer and improve parallelism and I/O efficiency, and the current reader serves as the benchmark baseline.

Assumes: Parquet file formatcolumnar databasesSQL aggregation

Related posts

  • ClickHouse Release 25.8

    ClickHouse mediumAdept

    ClickHouse 25.8 ships 45 features, 47 performance optimizations and 119 bug fixes. The headline is an experimental native Parquet reader (v3) that bypasses Apache Arrow. It reads columns within a row group concurrently, prefetches non-PREWHERE columns only after PREWHERE, and adds page-level min/max pruning, averaging 1.81× faster on ClickBench; in the demo a query drops from 1.5s to 0.7s. Also new: Hive-style partitioned writes via the S3 engine, Iceberg insert/delete/update/schema changes (experimental), Delta Lake writes and time travel, catalogs promoted to beta, and the _table virtual column available beyond merge().

  • ClickHouse Release 23.8

    ClickHouse mediumAdept

    ClickHouse 23.8 makes file reads much faster by using Parquet row-group min/max statistics to skip data, answering count() from file metadata, and pruning files via the _file virtual column without reading them. On a 126GiB PyPI Parquet dataset in GCS, a count dropped from 26.5s to 11.4s, a time-range filter from 84s to 35s, and a 10% filename sample from 4.6s to 0.6s. The release also adds the S3Queue table engine for streaming ingestion from S3. It tracks processed files in ClickHouse Keeper using an unordered mode (with TTL and file-count limits) or an ordered mode keyed on filenames. Direct querying of zip, tar and 7z archives via the file function is also new.

  • 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 Deep Dive into Apache Parquet with ClickHouse - Part 1

    ClickHouse mediumAdept

    ClickHouse can read and write Apache Parquet through its file and s3 table functions, using the same Parquet code in ClickHouse Local and ClickHouse Server. Examples on a 28M-row UK house price dataset show schema inspection with DESCRIBE and aggregation queries over local files, S3 objects and glob-matched file sets. Writes can go through INSERT INTO FUNCTION, INTO OUTFILE or FORMAT Parquet redirection, and PARTITION BY splits output into one file per year. INSERT INTO FUNCTION produces smaller files (243MB vs 291MB) than the client-side approaches, so it is recommended where possible.

  • How Jump Trading uses ClickHouse with Iceberg for analytics

    ClickHouse mediumAdept

    Jump Trading runs a self-managed, on-prem ClickHouse cluster of tens of nodes as the system of record for petabyte-scale trading logs, ingesting hundreds of TB per day with peaks of 10M rows/sec and a sub-20-second p99, reconciled daily for zero data loss. Raw logs flow through Redpanda to sharded bare-metal ingestors, distributed tables shard the fact tables, and replicated tables hold reference data. To serve heavy batch and HPC readers without loading the real-time cluster, Jump added a Netflix-style double-write pipeline: Kafka feeds parallel consumers writing to ClickHouse and to Iceberg Parquet on object storage. ClickHouse queries both, keeping the same access control and observability, and a 20-node Iceberg setup scanned 376 billion rows in 9.6 seconds.

The quest for software engineering knowledge.

Look:
Layout: