java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<PhysicalPlan,PhysicalPlan>
org.elasticsearch.xpack.esql.optimizer.rules.physical.local.InsertFieldExtraction

public class InsertFieldExtraction extends Rule<PhysicalPlan,PhysicalPlan>
Materialize the concrete fields that need to be extracted from the storage until the last possible moment. Expects the local plan to already have a projection containing the fields needed upstream.

1. add the materialization right before usage inside the local plan 2. materialize any missing fields needed further up the chain

See Also: