Function datafusion::common::arrow::csv::reader::infer_reader_schema
source ยท pub fn infer_reader_schema<R>(
reader: R,
delimiter: u8,
max_read_records: Option<usize>,
has_header: bool
) -> Result<(Schema, usize), ArrowError>where
R: Read,
๐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.