Module datafusion_optimizer::eliminate_limit
source · Expand description
Optimizer rule to replace LIMIT 0
or
LIMIT whose ancestor LIMIT's skip is greater than or equal to current's fetch
on a plan with an empty relation.
This rule also removes OFFSET 0 from the LogicalPlan
This saves time in planning and executing the query.
Structs
- Optimization rule that eliminate LIMIT 0 or useless LIMIT(skip:0, fetch:None). It can cooperate with
propagate_empty_relation
andlimit_push_down
.