Module datafusion::optimizer[][src]

This module contains a query optimizer that operates against a logical plan and applies some simple rules to a logical plan, such as “Projection Push Down” and “Type Coercion”.

Modules

constant_folding

Boolean comparision rule rewrites redudant comparison expression involing boolean literal into unary expression.

filter_push_down

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

hash_build_probe_order

Optimizer rule to switch build and probe order of hash join based on statistics of a TableProvider. If the number of rows of both sources is known, the order can be switched for a faster hash join.

limit_push_down

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

optimizer

Query optimizer traits

projection_push_down

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

utils

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