Class ReplaceSourceAttributes
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<LeafExec,PhysicalPlan>
org.elasticsearch.xpack.esql.optimizer.PhysicalOptimizerRules.OptimizerRule<LeafExec>
org.elasticsearch.xpack.esql.optimizer.rules.physical.local.ReplaceSourceAttributes
Strips source leaf nodes down to their minimal output attributes so that
InsertFieldExtraction
can later add only the fields that the rest of the plan actually needs.
Handles both EsSourceExec (data node path, replaced with EsQueryExec) and
ParameterizedQueryExec (lookup node path, output stripped to [_doc, _positions]).
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.PhysicalOptimizerRules.OptimizerRule
apply
-
Constructor Details
-
ReplaceSourceAttributes
public ReplaceSourceAttributes()
-
-
Method Details
-
rule
- Specified by:
rulein classPhysicalOptimizerRules.OptimizerRule<LeafExec>
-