Class ReplaceFieldWithConstantOrNull
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.ReplaceFieldWithConstantOrNull
public class ReplaceFieldWithConstantOrNull
extends ParameterizedRule<LogicalPlan,LogicalPlan,LocalLogicalOptimizerContext>
Look for any fields used in the plan that are missing and replaces them with null or look for fields that are constant.
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
-
ReplaceFieldWithConstantOrNull
public ReplaceFieldWithConstantOrNull()
-
-
Method Details
-
apply
public LogicalPlan apply(LogicalPlan plan, LocalLogicalOptimizerContext localLogicalOptimizerContext) - Specified by:
applyin classParameterizedRule<LogicalPlan,LogicalPlan, LocalLogicalOptimizerContext>
-