Class ReplaceMissingFieldWithNull
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<LogicalPlan,LogicalPlan>
org.elasticsearch.xpack.esql.rule.ParameterizedRule<LogicalPlan,LogicalPlan,LocalLogicalOptimizerContext>
org.elasticsearch.xpack.esql.optimizer.rules.logical.local.ReplaceMissingFieldWithNull
public class ReplaceMissingFieldWithNull
extends ParameterizedRule<LogicalPlan,LogicalPlan,LocalLogicalOptimizerContext>
Look for any fields used in the plan that are missing locally and replace them with null.
This should minimize the plan execution, in the best scenario skipping its execution all together.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(LogicalPlan plan, LocalLogicalOptimizerContext localLogicalOptimizerContext) Methods inherited from class org.elasticsearch.xpack.esql.rule.ParameterizedRule
apply
-
Constructor Details
-
ReplaceMissingFieldWithNull
public ReplaceMissingFieldWithNull()
-
-
Method Details
-
apply
public LogicalPlan apply(LogicalPlan plan, LocalLogicalOptimizerContext localLogicalOptimizerContext) - Specified by:
applyin classParameterizedRule<LogicalPlan,LogicalPlan, LocalLogicalOptimizerContext>
-