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.