Skip to content

Commit

Permalink
connector: Add apply_summarize predicate pushdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tontinton committed Dec 5, 2024
1 parent 9c1d832 commit 33ad44b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use color_eyre::eyre::Result;
use crate::log::LogTryStream;
use crate::workflow::filter::FilterAst;
use crate::workflow::sort::Sort;
use crate::workflow::summarize::Summarize;

#[macro_export]
macro_rules! downcast_unwrap {
Expand Down Expand Up @@ -84,5 +85,15 @@ pub trait Connector: Debug + Send + Sync {
None
}

/// Returns the handle with summarize predicate pushdown.
/// None means it can't predicate pushdown count.
fn apply_summarize(
&self,
_config: &Summarize,
_handle: &dyn QueryHandle,
) -> Option<Box<dyn QueryHandle>> {
None
}

async fn close(self);
}

0 comments on commit 33ad44b

Please sign in to comment.