async fn read_parquet(
    object_store: &ObjectStore,
    path: &Path,
) -> Result<(IoxMetadata, ParquetMetaData)> {
    let data = object_store
        .get(path)
        .await
        .context(ReadFailure)?
        .map_ok(|bytes| bytes.to_vec())
        .try_concat()
        .await
        .context(ReadFailure)?;

    let parquet_metadata = read_parquet_metadata_from_file(data)
        .context(MetadataReadFailure { path: path.clone() })?;
    let iox_metadata = read_iox_metadata_from_parquet_metadata(&parquet_metadata)
        .context(MetadataReadFailure { path: path.clone() })?;
    Ok((iox_metadata, parquet_metadata))
}
/// Read Parquet and IOx metadata from given path.
Read Parquet and IOx metadata from given path.
Read Parquet and IOx metadata from given path .
async fn read_parquet(
    object_store: &ObjectStore,
    path: &Path,
) -> Result<(IoxMetadata, ParquetMetaData)> {
    let data = object_store
        .get(path)
        .await
        .context(ReadFailure)?
        .map_ok(|bytes| bytes.to_vec())
        .try_concat()
        .await
        .context(ReadFailure)?;
    let parquet_metadata = read_parquet_metadata_from_file(data)
        .context(MetadataReadFailure { path: path.clone() })?;
    let iox_metadata = read_iox_metadata_from_parquet_metadata(&parquet_metadata)
        .context(MetadataReadFailure { path: path.clone() })?;
    Ok((iox_metadata, parquet_metadata))
}
async fn read_parquet ( object_store : & ObjectStore , path : & Path , ) -> Result < ( IoxMetadata , ParquetMetaData ) > { let data = object_store . get ( path ) . await . context ( ReadFailure ) ? . map_ok ( | bytes | bytes . to_vec ( ) ) . try_concat ( ) . await . context ( ReadFailure ) ? ; let parquet_metadata = read_parquet_metadata_from_file ( data ) . context ( MetadataReadFailure { path : path . clone ( ) } ) ? ; let iox_metadata = read_iox_metadata_from_parquet_metadata ( & parquet_metadata ) . context ( MetadataReadFailure { path : path . clone ( ) } ) ? ; Ok ( ( iox_metadata , parquet_metadata ) ) }
Read Parquet and IOx metadata from given path.
Read Parquet and IOx metadata from given path .
object_store
&ObjectStore
path
&Path
object_store
&ObjectStore
path
&Path