Skip to content

Commit

Permalink
feat: pushdown filters to region engine
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
  • Loading branch information
zhongzc committed Sep 27, 2023
1 parent ccd6de8 commit 9a64783
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/datanode/src/region_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use datafusion::datasource::TableProvider;
use datafusion::error::Result as DfResult;
use datafusion::execution::context::SessionState;
use datafusion_common::DataFusionError;
use datafusion_expr::{Expr as DfExpr, TableType};
use datafusion_expr::{Expr as DfExpr, TableProviderFilterPushDown, TableType};
use datatypes::arrow::datatypes::SchemaRef;
use futures_util::future::try_join_all;
use prost::Message;
Expand Down Expand Up @@ -498,4 +498,11 @@ impl TableProvider for DummyTableProvider {
StreamScanAdapter::new(stream),
))))
}

fn supports_filters_pushdown(
&self,
filters: &[&DfExpr],
) -> DfResult<Vec<TableProviderFilterPushDown>> {
Ok(vec![TableProviderFilterPushDown::Inexact; filters.len()])
}
}

0 comments on commit 9a64783

Please sign in to comment.