XiangpengHao commented on code in PR #7850:
URL: https://github.com/apache/arrow-rs/pull/7850#discussion_r2180914768
##########
parquet/src/arrow/array_reader/builder.rs:
##########
@@ -39,6 +42,14 @@ pub struct ArrayReaderBuilder<'a> {
row_groups: &'a dyn RowGroups,
}
+/// Cache options containing projection mask, cache, and role
+#[derive(Clone)]
+pub struct CacheOptions<'a> {
+ pub projection_mask: &'a ProjectionMask,
+ pub cache: Arc<Mutex<RowGroupCache>>,
Review Comment:
Practically there's no contention because there's not parallelism in
decoding one row group. we add mutex here because we need to use Arc.
--
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]