/// Read IOx schema from parquet metadata.
Read IOx schema from parquet metadata.
Read IOx schema from parquet metadata .
pub fn read_schema(&self) -> Result<Arc<Schema>> {
        let file_metadata = self.md.file_metadata();
        let arrow_schema = parquet_to_arrow_schema(
            file_metadata.schema_descr(),
            file_metadata.key_value_metadata(),
        )
        .context(ArrowFromParquetFailureSnafu {})?;
        // The parquet reader will propagate any metadata keys present in the parquet
        // metadata onto the arrow schema. This will include the encoded IOxMetadata
        //
        // We strip this out to avoid false negatives when comparing schemas for equality,
        // as this metadata will vary from file to file
        let arrow_schema_ref = Arc::new(arrow_schema.with_metadata(Default::default()));
        let schema: Schema = arrow_schema_ref
            .try_into()
            .context(IoxFromArrowFailureSnafu {})?;
        Ok(Arc::new(schema))
    }
pub fn read_schema ( & self ) -> Result < Arc < Schema > > { let file_metadata = self . md . file_metadata ( ) ; let arrow_schema = parquet_to_arrow_schema ( file_metadata . schema_descr ( ) , file_metadata . key_value_metadata ( ) , ) . context ( ArrowFromParquetFailureSnafu { } ) ? ; // The parquet reader will propagate any metadata keys present in the parquet // metadata onto the arrow schema. This will include the encoded IOxMetadata // // We strip this out to avoid false negatives when comparing schemas for equality, // as this metadata will vary from file to file let arrow_schema_ref = Arc :: new ( arrow_schema . with_metadata ( Default :: default ( ) ) ) ; let schema : Schema = arrow_schema_ref . try_into ( ) . context ( IoxFromArrowFailureSnafu { } ) ? ; Ok ( Arc :: new ( schema ) ) }
Read IOx schema from parquet metadata.
Read IOx schema from parquet metadata .
&self