Class InvalidMappedField
java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.TypeConflictedField
org.elasticsearch.xpack.esql.core.type.InvalidMappedField
- All Implemented Interfaces:
Writeable
N.B.: This class exists only as a backward-compatible version of CompactInvalidMappedField.
SET unmapped_fields="LOAD" this also includes indices missing
the field in their mappings, in which case it is treated as DataType.KEYWORD.
Used during analysis only; the analyzer's UnionTypesCleanup converts any InvalidMappedFields before the plan leaves
the coordinator.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.type.EsField
EsField.Exact, EsField.TimeSeriesFieldTypeNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPer-source-type indices in which the field appears with that type.inthashCode()booleanWhether the field is unmapped in at least one index, in which case it's treated asDataType.KEYWORDwhere it is unmapped.static InvalidMappedFieldAnInvalidMappedFieldis potentially unmapped if at least one index does not contain a mapping for the field, and the user requested we load the values from_source.types()Source data types observed for this field across all indices.Methods inherited from class org.elasticsearch.xpack.esql.core.type.TypeConflictedField
errorMessage, getExactField, getExactInfo, isSingleTypePotentiallyUnmapped, singleMappedType, singleMappedTypeWidenedMethods inherited from class org.elasticsearch.xpack.esql.core.type.EsField
getDataType, getName, getNodeStringName, getProperties, getReader, getTimeSeriesFieldType, getWriteableName, isAggregatable, isAlias, readFrom, readTimeSeriesFieldType, toString, withDataType, withWidenedSmallNumeric, writeContent, writeTimeSeriesFieldType, writeTo
-
Constructor Details
-
InvalidMappedField
-
InvalidMappedField
-
-
Method Details
-
potentiallyUnmapped
public static InvalidMappedField potentiallyUnmapped(String name, Map<String, Set<String>> typesToIndices) AnInvalidMappedFieldis potentially unmapped if at least one index does not contain a mapping for the field, and the user requested we load the values from_source. In that case, there is (possibly) an additional type conflict since we treat unmapped fields asDataType.KEYWORD. -
hashCode
public int hashCode() -
equals
-
getTypesToIndices
Description copied from class:TypeConflictedFieldPer-source-type indices in which the field appears with that type. Note thatCompactInvalidMappedFieldcaps each set and may include the"..."sentinel; callers that need a complete index list should useInvalidMappedFieldinstead.- Specified by:
getTypesToIndicesin classTypeConflictedField
-
isPotentiallyUnmapped
public boolean isPotentiallyUnmapped()Description copied from class:TypeConflictedFieldWhether the field is unmapped in at least one index, in which case it's treated asDataType.KEYWORDwhere it is unmapped.- Specified by:
isPotentiallyUnmappedin classTypeConflictedField
-
types
Description copied from class:TypeConflictedFieldSource data types observed for this field across all indices.- Specified by:
typesin classTypeConflictedField
-