infer_schema_from_path

Function infer_schema_from_path 

Source
pub fn infer_schema_from_path(
    path: impl AsRef<Path>,
    options: &IngestionOptions,
) -> IngestionResult<Schema>
Expand description

Infer a Schema for an input file.

This is intended for quick exploration and benchmarking when callers don’t have a schema yet. It uses a best-effort mapping into DataType::{Int64, Float64, Bool, Utf8}.

Notes:

  • For JSON, nested fields are inferred only at the top level (no dot-path expansion).
  • For Excel, inference uses a scan-based heuristic.