MCPcopy Create free account
hub / github.com/apache/datafusion / optimize_plan

Function optimize_plan

datafusion/optimizer/tests/optimizer_integration.rs:699–703  ·  view source on GitHub ↗
(plan: LogicalPlan)

Source from the content-addressed store, hash-verified

697fn observe(_plan: &LogicalPlan, _rule: &dyn OptimizerRule) {}
698
699fn optimize_plan(plan: LogicalPlan) -> Result<LogicalPlan> {
700 let config = OptimizerContext::new().with_skip_failing_rules(false);
701 let optimizer = Optimizer::new();
702 optimizer.optimize(plan, &config, observe)
703}
704
705/// Extension node that does NOT implement `necessary_children_exprs`.
706/// Used to test that the optimizer still processes subtrees below such nodes.

Calls 3

newFunction · 0.85
optimizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…