/// Read IOx schema from parquet metadata.
Read IOx schema from parquet metadata.
Read IOx schema from parquet metadata .
pub fn read_schema_from_parquet_metadata(parquet_md: &ParquetMetaData) -> Result<Schema> {
    let file_metadata = parquet_md.file_metadata();
    let arrow_schema = parquet_to_arrow_schema(
        file_metadata.schema_descr(),
        file_metadata.key_value_metadata(),
    )
    .context(ArrowFromParquetFailure {})?;
    let arrow_schema_ref = Arc::new(arrow_schema);
    let schema: Schema = arrow_schema_ref
        .try_into()
        .context(IoxFromArrowFailure {})?;
    Ok(schema)
}
pub fn read_schema_from_parquet_metadata ( parquet_md : & ParquetMetaData ) -> Result < Schema > { let file_metadata = parquet_md . file_metadata ( ) ; let arrow_schema = parquet_to_arrow_schema ( file_metadata . schema_descr ( ) , file_metadata . key_value_metadata ( ) , ) . context ( ArrowFromParquetFailure { } ) ? ; let arrow_schema_ref = Arc :: new ( arrow_schema ) ; let schema : Schema = arrow_schema_ref . try_into ( ) . context ( IoxFromArrowFailure { } ) ? ; Ok ( schema ) }
Read IOx schema from parquet metadata.
Read IOx schema from parquet metadata .
parquet_md
&ParquetMetaData