pub fn read_csv(
path: &str,
vfs: &VirtualFileSystemRegistry,
columns: &[CatalogColumn],
config: &CsvReaderConfig,
) -> CsvResult<Vec<Vec<Value>>>Expand description
Read a CSV file and coerce string values to Akar Values matching the schema.
§Arguments
path- Path to the CSV file.columns- Column schema (name + type) from the catalog.config- CSV reader configuration.
§Returns
A vector of rows, where each row is a Vec<Value> with length equal to
columns.len().
§Errors
Returns CsvReaderError on I/O errors, CSV parse errors, column count
mismatches, or type coercion failures.