Class LookupLogicalOptimizer


public class LookupLogicalOptimizer extends LocalLogicalPlanOptimizer
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.