-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support filter pushdown for datafusion #203
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #203 +/- ##
==========================================
- Coverage 91.78% 90.62% -1.17%
==========================================
Files 20 24 +4
Lines 962 1067 +105
==========================================
+ Hits 883 967 +84
- Misses 79 100 +21 ☔ View full report in Codecov by Sentry. |
crates/core/src/table/mod.rs
Outdated
@@ -194,7 +195,7 @@ impl Table { | |||
pub async fn get_file_slices_splits( | |||
&self, | |||
n: usize, | |||
filters: &[(&str, &str, &str)], | |||
filters: &[PartitionFilter], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should provide a generic struct for constructing filter, and not limited to PartitionFilter. And let's mark the existing api deprecated in the upcoming release and only remove in a future release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the fixes but I was a little confused how to deprecate this. Should I create another similar function?
Description
Added
Expr
toPartitionFilter
conversion to pass in filters. Datafusion will pass down all filters for now usingsupports_filters_pushdown
and will filter after partition filters.Closes #160.
Steps forward
I noticed the pr was getting a bit big to be reviewed all at once, here are some things that will be worked on afterwards:
PartitionFilters
for testing, etc.How are the changes test-covered
Added unit tests for all added functionality