Re-exports

pub use optimizer::OptimizerConfig;
pub use optimizer::OptimizerRule;

Modules

Eliminate common sub-expression.

Optimizer rule to replace where false on a plan with an empty relation. This saves time in planning and executing the query. Note that this rule should be applied after simplify expressions optimizer rule.

Optimizer rule to replace LIMIT 0 on a plan with an empty relation. This saves time in planning and executing the query.

Expression simplifier

Filter Push Down optimizer rule ensures that filters are applied as early as possible in the plan

Optimizer rule to push down LIMIT in the query plan It will push down through projection, limits (taking the smaller limit)

Query optimizer traits

Projection Push Down optimizer rule ensures that only referenced columns are loaded into memory

Simplify expressions optimizer rule

single distinct to group by optimizer rule

Optimizer rule for rewriting subquery filters to joins

Collection of utility functions that are leveraged by the query optimizer rules

Macros

A macro to assert that one string is contained within another with a nice error message if they are not.