Skip to content

Commit

Permalink
WIP: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
srh committed Aug 27, 2024
1 parent 05593a3 commit bdf0a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/src/physical_plan/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl NoopParquetMetadataCache {

impl ParquetMetadataCache for NoopParquetMetadataCache {
fn metadata(&self, _key: &str, file: &File) -> Result<Arc<ParquetMetaData>> {
Ok(Arc::new(footer::parse_metadata(file, &None)?))
Ok(Arc::new(footer::parse_metadata(file, &None)?.0))
}
}

Expand Down Expand Up @@ -203,7 +203,7 @@ impl ParquetMetadataCache for LruParquetMetadataCache {
match self.cache.get(&k) {
Some(metadata) => Ok(metadata),
None => {
let metadata = Arc::new(footer::parse_metadata(file, &None)?);
let metadata = Arc::new(footer::parse_metadata(file, &None)?.0);
self.cache.insert(k, metadata.clone());
Ok(metadata)
}
Expand Down

0 comments on commit bdf0a37

Please sign in to comment.