adriangb commented on code in PR #6999:
URL: https://github.com/apache/arrow-rs/pull/6999#discussion_r1922875829
##########
parquet/src/file/metadata/reader.rs:
##########
@@ -1052,5 +1060,17 @@ mod async_tests {
.unwrap();
assert_eq!(fetch_count.load(Ordering::SeqCst), 1);
assert!(metadata.offset_index().is_some() &&
metadata.column_index().is_some());
+
+ // Prefetch more than enough
+ fetch_count.store(0, Ordering::SeqCst);
+ let f = MetadataFetchFn(&mut fetch);
+ let metadata = ParquetMetaDataReader::new()
+ .with_page_indexes(true)
+ .with_prefetch_hint(Some(len)) // prefetch entire file
Review Comment:
done, I also added > file size
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]