haohuaijin commented on code in PR #9766:
URL: https://github.com/apache/arrow-rs/pull/9766#discussion_r3135455795


##########
parquet/src/arrow/arrow_reader/read_plan.rs:
##########
@@ -305,6 +385,35 @@ impl LimitedReadPlanBuilder {
     }
 }
 
+/// Produce a new `BooleanArray` of the same length as `filter` in which only
+/// the first `n` `true` positions from `filter` remain `true`; any `true`
+/// positions beyond the first `n` are replaced with `false`.
+///
+/// `filter` must not contain nulls (callers apply [`prep_null_mask_filter`]
+/// first). If `filter` has at most `n` `true` values, a clone is returned.
+fn truncate_filter_after_n_trues(filter: &BooleanArray, n: usize) -> 
BooleanArray {

Review Comment:
   create a issue to track https://github.com/apache/arrow-rs/issues/9803



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

Reply via email to