ClickHouse's PODArray Pads 64 Bytes for SIMD and Zeroes the Element at Index -1
Every ClickHouse column is one flat PODArray, padded 64 bytes on both sides.
Every ClickHouse column is one flat PODArray, padded 64 bytes on both sides.
A sparse column stores only the rows that differ from the default, plus a sorted offsets array.
A Variant column is a struct of arrays — one sub-column per alternative, one tag byte per row, one offset per row.
A GROUP BY needs a serial merge at the end — and that’s where the memory high-water mark lives.
ClickHouse doesn’t call operators in a fixed order. Every processor reports a status — ‘I need data’, ‘my output is full’, ‘call my work()’ — and the executor walks the…