How ClickHouse Compresses Columns: Delta, Gorilla and the CODEC Pipeline
ClickHouse’s column codecs are bit-level transforms chained under a generic compressor: Delta, DoubleDelta and Gorilla, nested by CODEC(…).
ClickHouse’s column codecs are bit-level transforms chained under a generic compressor: Delta, DoubleDelta and Gorilla, nested by CODEC(…).
ClickHouse hashes each inserted block into a UInt128 dedup token and keeps a bounded window of recent tokens to detect retries.
ClickHouse splits CSV into row-aligned chunks with a quote-aware scanner, parses them on separate threads, and reorders them with a ticket ring.
Replication is a ZooKeeper log plus a content-hash deduplication check that rides along with the block-number allocation.
ClickHouse’s function factory: static registration, alias maps, and a declarative signature DSL for overload resolution.