A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/datafusion/latest/datafusion/optimizer/trait.AnalyzerRule.html below:

AnalyzerRule in datafusion::optimizer - Rust

pub trait AnalyzerRule: Debug {
    // Required methods
    fn analyze(
        &self,
        plan: LogicalPlan,
        config: &ConfigOptions,
    ) -> Result<LogicalPlan, DataFusionError>;
    fn name(&self) -> &str;
}
Expand description

AnalyzerRules transform LogicalPlans in some way to make the plan valid prior to the rest of the DataFusion optimization process.

AnalyzerRules are different than an OptimizerRules which must preserve the semantics of the LogicalPlan, while computing results in a more optimal way.

For example, an AnalyzerRule may resolve Exprs into more specific forms such as a subquery reference, or do type coercion to ensure the types of operands are correct.

Use SessionState::add_analyzer_rule to register additional AnalyzerRules.

Source

Rewrite plan

Source

A human readable name for this analyzer rule


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4