pub fn infer_iter<A>(rows: impl Iterator<Item = A>) -> Result<DataType, Error>where
    A: AsRef<str>,
Available on crate features json and io_json only.
Expand description

Infers the DataType from an iterator of JSON strings. A limited number of rows can be used by passing rows.take(number_of_rows) as an input.

Implementation

This implementation infers each row by going through the entire iterator.