Skip to main content

MAX_BLANK_RECORDS_PER_BATCH

Constant MAX_BLANK_RECORDS_PER_BATCH 

Source
const MAX_BLANK_RECORDS_PER_BATCH: usize = _; // 1_048_576usize
Expand description

Cap on the blank lines that are records in one batch of CSV data.

NOTE: A worker decodes a batch into rows before it writes any of them, and a blank line is a Row from one byte of input. Without the cap, a batch of blank lines would decode into size_of::<Row>() times its size.