Skip to main content

MAX_PREALLOC_ROWS

Constant MAX_PREALLOC_ROWS 

Source
const MAX_PREALLOC_ROWS: usize = 1_000_000;
Expand description

Upper bound on the row capacity pre-allocated for Arrow builders.

The claimed row count comes from an untrusted file header, so the up-front allocation is capped here; builders grow on demand past this for honest files. 1,000,000 rows is far beyond the default 10k streaming chunk while keeping the worst-case empty-builder reservation bounded.