Skip to main content

Module optimizer

Module optimizer 

Source
Expand description

Plan-native algebraic and cross-paradigm rewrites.

Structs§

OptimizerConfig

Enums§

OptimizerError
Errors raised while simplifying expressions or choosing a physical join order.

Traits§

SourceStatistics
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§

ConstantEvaluator
Evaluate a planner-proven constant using the runtime selected by the caller.
OptimizerResult