Function arrow_csv::reader::infer_reader_schema

source ยท
pub fn infer_reader_schema<R: Read>(
    reader: R,
    delimiter: u8,
    max_read_records: Option<usize>,
    has_header: bool,
) -> Result<(Schema, usize), ArrowError>
๐Ÿ‘ŽDeprecated: Use Format::infer_schema
Expand description

Infer schema of CSV records provided by struct that implements Read trait.

max_read_records controlling the maximum number of records to read. If max_read_records is not set, all records are read to infer the schema.

Return inferred schema and number of records used for inference.