---
title: "A Deep Dive into Apache Parquet with ClickHouse - Part 2"
description: "Parquet files are organized into row groups, column chunks and pages, with dictionary, RLE/bit-packing and delta encodings plus footer metadata and min/max statistics that let readers push down projections and predicates."
url: "https://swe.quest/articles/a-deep-dive-into-apache-parquet-with-clickhouse-part-2-6aca5ceaeed12095"
canonical: "https://clickhouse.com/blog/apache-parquet-clickhouse-local-querying-writing-internals-row-groups"
source: "ClickHouse"
published: "2023-04-26"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 23
tags: ["analytics","storage-engines","performance","data-pipelines"]
---

# A Deep Dive into Apache Parquet with ClickHouse - Part 2

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-04-26, 23 min read, Deep dive. Original: [https://clickhouse.com/blog/apache-parquet-clickhouse-local-querying-writing-internals-row-groups](https://clickhouse.com/blog/apache-parquet-clickhouse-local-querying-writing-internals-row-groups)

## Summary

Parquet files are organized into row groups, column chunks and pages, with dictionary, RLE/bit-packing and delta encodings plus footer metadata and min/max statistics that let readers push down projections and predicates. In ClickHouse, writing via INSERT INTO FUNCTION file/s3 gives predictable control over row group size through min\_insert\_block\_size\_bytes, min\_insert\_block\_size\_rows and output\_format\_parquet\_row\_group\_size, whereas SELECT ... FORMAT Parquet tends to produce many small row groups that compress worse. The new ParquetMetadata input format exposes per-column encodings, compression and statistics. Benchmarks on the UK house price dataset show Parquet at 174–348 MB depending on codec, versus 3.5 GB for uncompressed CSV.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- columnar storage basics
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- compression codecs

## Keywords

Apache Parquet, ClickHouse, ClickHouse Local, Apache Arrow, ParquetMetadata, Amazon S3

## Related posts

- [A Deep Dive into Apache Parquet with ClickHouse - Part 1](https://swe.quest/articles/a-deep-dive-into-apache-parquet-with-clickhouse-part-1-cafa50694ad68bf6.md): ClickHouse · 2023-04-18 · Medium · 11 min read · Analytics & OLAP, Data pipelines, SQL
  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.
- [ClickHouse and Parquet: A foundation for fast Lakehouse analytics](https://swe.quest/articles/clickhouse-and-parquet-a-foundation-for-fast-lakehouse-analytics-8735ae90a09a83f6.md): ClickHouse · 2025-05-07 · Medium · 22 min read · Query engines, Analytics & OLAP, Performance engineering, Concurrency
  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.
- [ClickHouse Release 23.8](https://swe.quest/articles/clickhouse-release-23-8-8db1ebb65d969c75.md): ClickHouse · 2023-09-15 · Medium · 10 min read · Analytics & OLAP, Query engines, Data pipelines, Performance engineering
  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.
- [Improving Parquet Dedupe on Hugging Face Hub](https://swe.quest/articles/improving-parquet-dedupe-on-hugging-face-hub-fceac01ac834bf66.md): Hugging Face · 2024-10-05 · Medium · 5 min read · Storage systems, Analytics & OLAP, Data pipelines, Algorithms
  Byte-level content-defined chunking dedupes Parquet appends almost perfectly: 10,000 appended rows give 99.1% dedupe and need about 20MB of new storage.
- [ClickHouse Release 25.8](https://swe.quest/articles/clickhouse-release-25-8-24e052d1705201ca.md): ClickHouse · 2025-09-05 · Medium · 13 min read · Analytics & OLAP, Query engines, Performance engineering, Data pipelines
  ClickHouse 25.8 ships 45 features, 47 performance optimizations and 119 bug fixes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
