Class UnsupportedAttribute
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<Expression>
org.elasticsearch.xpack.esql.core.expression.Expression
org.elasticsearch.xpack.esql.core.expression.NamedExpression
org.elasticsearch.xpack.esql.core.expression.Attribute
org.elasticsearch.xpack.esql.core.expression.TypedAttribute
org.elasticsearch.xpack.esql.core.expression.FieldAttribute
org.elasticsearch.xpack.esql.expression.function.UnsupportedAttribute
- All Implemented Interfaces:
NamedWriteable,Writeable,Resolvable,Unresolvable
Unsupported attribute meaning an attribute that has been found yet cannot be used (hence why UnresolvedAttribute
cannot be used) expect in special conditions (currently only in projections to allow it to flow through
the engine).
As such the field is marked as unresolved (so the verifier can pick up its usage outside project).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.expression.FieldAttribute
FieldAttribute.FieldNameNested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
Expression.TypeResolutionNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamedWriteableRegistry.Entrystatic final NamedWriteableRegistry.Entrystatic final NamedWriteableRegistry.EntryFields inherited from class org.elasticsearch.xpack.esql.core.expression.FieldAttribute
lazyFieldNameFields inherited from class org.elasticsearch.xpack.esql.core.expression.Attribute
SYNTHETIC_ATTRIBUTE_NAME_PREFIXFields inherited from interface org.elasticsearch.xpack.esql.core.capabilities.Unresolvable
UNRESOLVED_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedAttribute(Source source, String name, UnsupportedEsField field) UnsupportedAttribute(Source source, String name, UnsupportedEsField field, String customMessage) UnsupportedAttribute(Source source, String name, UnsupportedEsField field, String customMessage, NameId id) -
Method Summary
Modifier and TypeMethodDescriptionprotected Attributeclone(Source source, String name, DataType type, Nullability nullability, NameId id, boolean synthetic) field()booleaninthashCode()protected NodeInfo<FieldAttribute> info()protected booleanprotected Stringlabel()This contains all the underlying ES types.static UnsupportedAttributereadFrom(StreamInput in) booleanresolved()toString()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.esql.core.expression.FieldAttribute
exactAttribute, getExactInfo, name, parentName, withDataTypeMethods inherited from class org.elasticsearch.xpack.esql.core.expression.TypedAttribute
dataTypeMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Attribute
canonicalize, nullable, rawTemporaryName, references, replaceChildren, semanticEquals, semanticHash, toAttribute, withId, withLocation, withName, withNullabilityMethods inherited from class org.elasticsearch.xpack.esql.core.expression.NamedExpression
equals, id, syntheticMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, childrenResolved, fold, foldable, propertiesToString, resolveType, typeResolvedMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
anyMatch, children, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, nodeName, nodeProperties, replaceChildrenSameSize, source, sourceLocation, sourceText, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Field Details
-
ENTRY
-
NAMED_EXPRESSION_ENTRY
-
EXPRESSION_ENTRY
-
-
Constructor Details
-
UnsupportedAttribute
-
UnsupportedAttribute
public UnsupportedAttribute(Source source, String name, UnsupportedEsField field, @Nullable String customMessage) -
UnsupportedAttribute
public UnsupportedAttribute(Source source, String name, UnsupportedEsField field, @Nullable String customMessage, @Nullable NameId id)
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classFieldAttribute- Throws:
IOException
-
readFrom
- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Overrides:
getWriteableNamein classFieldAttribute
-
resolved
public boolean resolved()- Specified by:
resolvedin interfaceResolvable- Specified by:
resolvedin interfaceUnresolvable- Overrides:
resolvedin classExpression
-
field
- Overrides:
fieldin classFieldAttribute
-
fieldName
- Overrides:
fieldNamein classFieldAttribute
-
info
- Overrides:
infoin classFieldAttribute
-
clone
protected Attribute clone(Source source, String name, DataType type, Nullability nullability, NameId id, boolean synthetic) - Overrides:
clonein classFieldAttribute
-
label
- Overrides:
labelin classFieldAttribute
-
toString
-
nodeString
- Overrides:
nodeStringin classAttribute
-
unresolvedMessage
- Specified by:
unresolvedMessagein interfaceUnresolvable
-
hasCustomMessage
public boolean hasCustomMessage() -
hashCode
public int hashCode()- Overrides:
hashCodein classFieldAttribute
-
innerEquals
- Overrides:
innerEqualsin classFieldAttribute
-
originalTypes
This contains all the underlying ES types. On a type conflict this will have many elements, some or all of which may be actually supported types.
-