Expand description
Plan-native algebraic and cross-paradigm rewrites.
Structs§
Enums§
- Optimizer
Error - Errors raised while simplifying expressions or choosing a physical join order.
Traits§
- Source
Statistics - Cardinality and column statistics used to cost base relations during join enumeration. Engines implement this against their live catalogue; callers without a catalogue still get deterministic DPccp enumeration from the optimizer’s fallback cardinality.
Functions§
- contains_
retrieval - Whether a scalar expression contains a posting-list retrieval operator. Relational executors use the same classification as access-path planning so registered retrieval calls never fall through to scalar evaluation.
- optimize
- Optimize a fully lowered plan using the built-in aggregate catalogue.
- optimize_
with_ aggregates - Optimize a fully lowered plan while classifying engine-local aggregates.
- optimize_
with_ aggregates_ and_ statistics - Optimize a fully lowered plan while classifying engine-local aggregates and costing join orders from the engine’s relation statistics.
- optimize_
with_ statistics - Optimize a fully lowered plan with caller-provided relation statistics.
- query_
contains_ implicit_ hybrid_ fusion - Return whether optimizing this query will introduce a fusion node that can persist Bayesian text calibration. This mirrors the rewrite’s source-aware qualifier policy before optimization changes the predicate.
Type Aliases§
- Constant
Evaluator - Evaluate a planner-proven constant using the runtime selected by the caller.
- Optimizer
Result