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/04/09 02:53:02 UTC

[GitHub] [arrow-datafusion] yjshen commented on a diff in pull request #1990: Make it possible to only scan part of a parquet file in a partition

yjshen commented on code in PR #1990:
URL: https://github.com/apache/arrow-datafusion/pull/1990#discussion_r846565204


##########
datafusion/core/src/datasource/listing/mod.rs:
##########
@@ -32,15 +32,26 @@ pub use table::{ListingOptions, ListingTable, ListingTableConfig};
 pub type PartitionedFileStream =
     Pin<Box<dyn Stream<Item = Result<PartitionedFile>> + Send + Sync + 'static>>;
 
+/// File part identified by [start, end) positions.

Review Comment:
   Yes, get the row group midpoint in bytes in https://github.com/apache/arrow-rs/blob/master/parquet/src/file/serialized_reader.rs#L222-L232, and check if the midpoint is in the [start, end) range.



-- 
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