discivigour commented on code in PR #230:
URL: https://github.com/apache/paimon-rust/pull/230#discussion_r3055905344
##########
crates/paimon/src/arrow/format/parquet.rs:
##########
@@ -783,11 +783,33 @@ fn build_row_ranges_selection(
struct ArrowFileReader {
file_size: u64,
r: Box<dyn FileRead>,
+ /// Maximum gap (in bytes) between two ranges that will be merged into a
+ /// single fetch request. Defaults to 1 MiB.
+ range_coalesce_bytes: u64,
+ /// Maximum number of merged ranges to fetch concurrently. Defaults to 8.
+ range_fetch_concurrency: usize,
+ /// Hint for the number of bytes to speculatively read from the end of the
+ /// file when loading Parquet metadata. A sufficiently large hint reduces
+ /// footer loading from 2 round-trips to 1. Defaults to 512 KiB.
+ metadata_size_hint: Option<usize>,
}
+/// Default coalesce threshold: 1 MiB.
+const DEFAULT_RANGE_COALESCE_BYTES: u64 = 1024 * 1024;
+/// Default concurrent range fetches.
+const DEFAULT_RANGE_FETCH_CONCURRENCY: usize = 8;
Review Comment:
changed.
--
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]