mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
feat: push down filters to region engine (#2513)
feat: pushdown filters to region engine Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
@@ -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;
|
||||
@@ -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()])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user