Class LookupLogicalOptimizer
java.lang.Object
org.elasticsearch.xpack.esql.rule.RuleExecutor<LogicalPlan>
org.elasticsearch.xpack.esql.rule.ParameterizedRuleExecutor<LogicalPlan,LocalLogicalOptimizerContext>
org.elasticsearch.xpack.esql.optimizer.LocalLogicalPlanOptimizer
org.elasticsearch.xpack.esql.optimizer.LookupLogicalOptimizer
Logical plan optimizer for the lookup node. Extends
LocalLogicalPlanOptimizer with a
reduced rule set appropriate for lookup plans (rooted at
ParameterizedQuery, not
EsRelation).
The lookup logical plan is narrow: Project -> optional Filter -> ParameterizedQuery.
This optimizer runs ReplaceFieldWithConstantOrNull to replace missing/constant fields,
then the standard operator-optimization rules to fold nulls, simplify booleans, and prune filters.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.rule.RuleExecutor
RuleExecutor.Batch<TreeType extends Node<TreeType>>, RuleExecutor.Limiter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.LocalLogicalPlanOptimizer
localOptimizeMethods inherited from class org.elasticsearch.xpack.esql.rule.ParameterizedRuleExecutor
context, transformMethods inherited from class org.elasticsearch.xpack.esql.rule.RuleExecutor
execute
-
Constructor Details
-
LookupLogicalOptimizer
-
-
Method Details
-
batches
- Overrides:
batchesin classLocalLogicalPlanOptimizer
-