Columnar limits
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 |
Consumed exactly
Section titled “Consumed exactly”The block must be consumed exactly. Bytes left over after the last field are Corrupt("columnar trailing bytes").
Revision errors
Section titled “Revision errors”A revision above 5 is NewerFormat("columnar block"), and revision 0 is Corrupt. See Columnar block.
Arithmetic
Section titled “Arithmetic”Every length computation uses checked arithmetic, and overflow is Corrupt, never a panic. See Errors and count limit.