Skip to content

Commit

Permalink
fmt, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Nov 1, 2024
1 parent 569f90e commit 516edf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions datafusion/core/src/datasource/listing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ impl PartitionedFile {
.with_range(start, end)
}

/// Add a metadata size hint to this file
pub fn with_metadata_size_hint(mut self, metadata_size_hint: usize) -> Self {
self.metadata_size_hint = Some(metadata_size_hint);
self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl FileOpener for ParquetOpener {
let file_name = file_meta.location().to_string();
let file_metrics =
ParquetFileMetrics::new(self.partition_index, &file_name, &self.metrics);

let metadata_size_hint = file_meta.metadata_size_hint.or(self.metadata_size_hint);

let mut reader: Box<dyn AsyncFileReader> =
Expand Down

0 comments on commit 516edf3

Please sign in to comment.