Class MultiTypeEsField

java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.MultiTypeEsField
All Implemented Interfaces:
Writeable

public class MultiTypeEsField extends EsField
During IndexResolution it can occur that the same field is mapped to different types in different indices. An InvalidMappedField holds that information and allows for later resolution of the field to a single type in ResolveUnionTypes. If the plan contains a converted field attribute with mapping conflict, like EVAL x = x::long, this conversion is fused into the FieldAttribute and represented by an instance of this class instead of the InvalidMappedField. This class is sent to the data nodes to inform them that they have to convert the type directly during field extraction.