Class PropagateUnmappedFields

java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<LogicalPlan,LogicalPlan>
org.elasticsearch.xpack.esql.optimizer.rules.logical.PropagateUnmappedFields

public class PropagateUnmappedFields extends Rule<LogicalPlan,LogicalPlan>
Pushes PotentiallyUnmappedKeywordEsField attributes down into EsRelation outputs so block loaders know to fetch from _source. Only those not yet declared in any EsRelation output are propagated — the gate is structural, not command-specific, so any future feature that introduces them above a relation is handled automatically. Today that is only INSIST.

N.B. When INSIST is sunset, this rule can be removed.