Skip to content

A columnar block is checked against these limits when it is decoded. A violation is Corrupt.

Limit Value
Entries per block (n) at most 65536 (count(65536))
Width, cells per row at most 1024 (count(1024))
Cells (n x width) at most 4 194 304
Decoded size at most 256 MiB
Key offset of a key reference count(65535)
Typed key length len count(65535)
Column reference count(c) in revisions 2 and 3, count(c+1) in revisions 4 and 5
Packed bit width at most 64

The block must be consumed exactly. Bytes left over after the last field are Corrupt("columnar trailing bytes").

A revision above 5 is NewerFormat("columnar block"), and revision 0 is Corrupt. See Columnar block.

Every length computation uses checked arithmetic, and overflow is Corrupt, never a panic. See Errors and count limit.