parquet::arrow

Function parquet_to_arrow_schema_by_columns

Source
pub fn parquet_to_arrow_schema_by_columns(
    parquet_schema: &SchemaDescriptor,
    mask: ProjectionMask,
    key_value_metadata: Option<&Vec<KeyValue>>,
) -> Result<Schema>
Expand description

Convert parquet schema to arrow schema including optional metadata, only preserving some leaf columns.