Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Jan 20, 2025
1 parent c45551e commit ec36a6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parquet/src/file/metadata/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@ impl ParquetMetaDataReader {

let bytes = match &remainder {
Some((remainder_start, remainder)) if *remainder_start <= range.start => {
let offset = range.start - *remainder_start;
let end = offset + range.end - range.start;
assert!(end <= remainder.len());
remainder.slice(offset..end)
let offset = range.start - *remainder_start;
let end = offset + range.end - range.start;
assert!(end <= remainder.len());
remainder.slice(offset..end)
}
// Note: this will potentially fetch data already in remainder, this keeps things simple
_ => fetch.fetch(range.start..range.end).await?,
Expand Down

0 comments on commit ec36a6f

Please sign in to comment.