Class InvalidMappedTsField
java.lang.Object
org.elasticsearch.xpack.esql.core.type.EsField
org.elasticsearch.xpack.esql.core.type.InvalidMappedTsField
- All Implemented Interfaces:
Writeable
Represents a field that has the same ES data type across all indices but conflicting time-series
roles (e.g.,
DIMENSION in one index and METRIC in another).
Exists only during analysis and verification - it is not sent to data nodes.
The analyzer converts this to an UnsupportedEsField-backed
UnsupportedAttribute via mappingAsAttributes.
Unlike InvalidMappedField, which carries a typesToIndices map and can participate in
union-type casts (e.g., field::double), a role conflict cannot be resolved by any cast,
so this class is intentionally not a subclass of InvalidMappedField.
Crucially, this class is also not an UnsupportedEsField. The field-hierarchy walk in
IndexResolver.mergedMappings propagates unsupported status to child fields when it
encounters an UnsupportedEsField parent. By using a distinct type here, subfields with
non-conflicting, supported types remain accessible.
-
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 TypeMethodDescriptionbooleanReturns the human-readable error message describing the time-series role conflict.inthashCode()voidwriteContent(StreamOutput out) This needs to be overridden by subclasses for specific serializationMethods inherited from class org.elasticsearch.xpack.esql.core.type.EsField
getDataType, getExactField, getExactInfo, getName, getNodeStringName, getProperties, getReader, getTimeSeriesFieldType, getWriteableName, isAggregatable, isAlias, readFrom, readTimeSeriesFieldType, toString, withDataType, withWidenedSmallNumeric, writeTimeSeriesFieldType, writeTo
-
Constructor Details
-
InvalidMappedTsField
-
InvalidMappedTsField
-
-
Method Details
-
writeContent
Description copied from class:EsFieldThis needs to be overridden by subclasses for specific serialization- Overrides:
writeContentin classEsField
-
errorMessage
Returns the human-readable error message describing the time-series role conflict. -
hashCode
public int hashCode() -
equals
-