polars_parquet::arrow::read::schema

Function read_schema_from_metadata

Source
pub fn read_schema_from_metadata(
    metadata: &mut Metadata,
) -> PolarsResult<Option<ArrowSchema>>
Expand description

Reads an arrow schema from Parquet’s file metadata. Returns None if no schema was found.

§Errors

Errors iff the schema cannot be correctly parsed.