Trait query::optimizer::ExtensionAnalyzerRule

source ·
pub trait ExtensionAnalyzerRule {
    // Required method
    fn analyze(
        &self,
        plan: LogicalPlan,
        ctx: &QueryEngineContext,
        config: &ConfigOptions,
    ) -> Result<LogicalPlan>;
}
Expand description

ExtensionAnalyzerRules transform [LogicalPlan]s in some way to make the plan valid prior to the rest of the DataFusion optimization process. It’s an extension of datafusion [AnalyzerRule]s but accepts QueryEngineContext as the second parameter.

Required Methods§

source

fn analyze( &self, plan: LogicalPlan, ctx: &QueryEngineContext, config: &ConfigOptions, ) -> Result<LogicalPlan>

Rewrite plan

Implementors§