This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 7b8f1f1a91 Expose predicates from RowFilter (#8315)
7b8f1f1a91 is described below
commit 7b8f1f1a91bf21f084a6987b56adb3dd7741e5fc
Author: Ben Ye <[email protected]>
AuthorDate: Fri Sep 12 12:34:09 2025 -0700
Expose predicates from RowFilter (#8315)
# Which issue does this PR close?
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
- Closes #8314.
# Rationale for this change
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
# What changes are included in this PR?
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
# Are these changes tested?
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
# Are there any user-facing changes?
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
If there are any breaking changes to public APIs, please call them out.
---------
Signed-off-by: Ben Ye <[email protected]>
---
parquet/src/arrow/arrow_reader/filter.rs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/parquet/src/arrow/arrow_reader/filter.rs
b/parquet/src/arrow/arrow_reader/filter.rs
index 3a897c0544..4fbe45748b 100644
--- a/parquet/src/arrow/arrow_reader/filter.rs
+++ b/parquet/src/arrow/arrow_reader/filter.rs
@@ -186,4 +186,12 @@ impl RowFilter {
pub fn new(predicates: Vec<Box<dyn ArrowPredicate>>) -> Self {
Self { predicates }
}
+ /// Returns the inner predicates
+ pub fn predicates(&self) -> &Vec<Box<dyn ArrowPredicate>> {
+ &self.predicates
+ }
+ /// Returns the inner predicates, consuming self
+ pub fn into_predicates(self) -> Vec<Box<dyn ArrowPredicate>> {
+ self.predicates
+ }
}