Skip to main content

Module schema_inference

Module schema_inference 

Source
Expand description

Schema inference for data files.

Reads just the schema (column names + types) from CSV, JSON, and Parquet files without loading the full data. Used for compile-time schema validation.

Modules§

lockfile
Schema cache helpers backed by generic shape.lock artifacts.

Enums§

SchemaInferError
Error type for schema inference operations.

Functions§

infer_csv_schema
Infer schema from a CSV file using header + sample rows.
infer_json_schema
Infer schema from a JSON/NDJSON file using sample rows.
infer_parquet_schema
Infer schema from a Parquet file by reading only the footer metadata.
infer_schema
Infer the Arrow schema from a data file by extension.