arrow_json::reader::schema

Function coerce_data_type

Source
fn coerce_data_type(dt: Vec<&DataType>) -> DataType
Expand description

Coerce data type during inference

  • Int64 and Float64 should be Float64
  • Lists and scalars are coerced to a list of a compatible scalar
  • All other types are coerced to Utf8