You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/08/16 22:16:37 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #2473: Use OffsetIndex to prune IO with RowSelection

tustvold commented on code in PR #2473:
URL: https://github.com/apache/arrow-rs/pull/2473#discussion_r947293699


##########
parquet/src/file/page_index/index_reader.rs:
##########
@@ -65,7 +65,7 @@ pub fn read_pages_locations<R: ChunkReader>(
     let (offset, total_length) = get_location_offset_and_total_length(chunks)?;
 
     //read all need data into buffer
-    let mut reader = reader.get_read(offset, reader.len() as usize)?;
+    let mut reader = reader.get_read(offset, total_length)?;

Review Comment:
   Yup, I remember fixing it in a PR that got abandoned at some point



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org