Skip to content

Commit

Permalink
feat: push down filters to region engine (#2513)
Browse files Browse the repository at this point in the history
feat: pushdown filters to region engine

Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc authored Sep 27, 2023
1 parent ccd6de8 commit 7edafc3
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 7edafc3

Please sign in to comment.