Skip to content

Commit 7b8f1f1

Browse files
authored
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]>
1 parent aa626e1 commit 7b8f1f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

parquet/src/arrow/arrow_reader/filter.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,12 @@ impl RowFilter {
186186
pub fn new(predicates: Vec<Box<dyn ArrowPredicate>>) -> Self {
187187
Self { predicates }
188188
}
189+
/// Returns the inner predicates
190+
pub fn predicates(&self) -> &Vec<Box<dyn ArrowPredicate>> {
191+
&self.predicates
192+
}
193+
/// Returns the inner predicates, consuming self
194+
pub fn into_predicates(self) -> Vec<Box<dyn ArrowPredicate>> {
195+
self.predicates
196+
}
189197
}

0 commit comments

Comments
 (0)