ingest_csv_from_path

Function ingest_csv_from_path 

Source
pub fn ingest_csv_from_path(
    path: impl AsRef<Path>,
    schema: &Schema,
) -> IngestionResult<DataSet>
Expand description

Ingest a CSV file into an in-memory DataSet.

Rules:

  • CSV must have headers.
  • Headers must contain all schema fields (order can differ).
  • Each value is parsed according to the schema field type.