Skip to content

Commit 4a0fb90

Browse files
authored
feat: expose specifying scanner filters via datafusion (#3458)
We are trying to build a Datafusion table provider in LanceDB and it receives expressions as DF logical exprs. We can go DF expr -> substrait -> DF expr but it seems simpler to just expose the API to accept filters as DF exprs directly.
1 parent 6b58bc1 commit 4a0fb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/lance/src/dataset/scanner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ impl Scanner {
534534
Ok(self)
535535
}
536536

537-
pub(crate) fn filter_expr(&mut self, filter: Expr) -> &mut Self {
537+
pub fn filter_expr(&mut self, filter: Expr) -> &mut Self {
538538
self.filter = Some(LanceFilter::Datafusion(filter));
539539
self
540540
}

0 commit comments

Comments
 (0)