Class LookupPruneFilters
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<Filter,LogicalPlan>
org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule<Filter>
org.elasticsearch.xpack.esql.optimizer.rules.logical.PruneFilters
org.elasticsearch.xpack.esql.optimizer.rules.logical.local.LookupPruneFilters
Lookup-specific variant of
PruneFilters. When a filter condition evaluates to false
and the filter's subtree contains a ParameterizedQuery, marks it as emptyResult=true
instead of collapsing the entire plan to a LocalRelation. This preserves the plan structure
so the LookupExecutionPlanner can still build the operator chain.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LogicalPlanhandleAlwaysFalseFilter(Filter filter) Handles a filter whose condition has been folded tofalseornull.Methods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.PruneFilters
ruleMethods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule
apply
-
Constructor Details
-
LookupPruneFilters
public LookupPruneFilters()
-
-
Method Details
-
handleAlwaysFalseFilter
Description copied from class:PruneFiltersHandles a filter whose condition has been folded tofalseornull. By default, collapses the plan viaPruneEmptyPlans.skipPlan(org.elasticsearch.xpack.esql.plan.logical.UnaryPlan); subclasses may override to preserve plan structure when collapsing is not appropriate (e.g. lookup plans).- Overrides:
handleAlwaysFalseFilterin classPruneFilters
-