-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Move originalTypes method to FieldAttribute
#126838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESQL: Move originalTypes method to FieldAttribute
#126838
Conversation
This moves originalTypes() from Attribute to FieldAttribute, since only a FieldAttribute (and its subclasses) can refer to a field with multiple types.
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
.../plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/TransportEsqlQueryAction.java
Outdated
Show resolved
Hide resolved
| @Nullable | ||
| public List<String> originalTypes() { | ||
| return null; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to move it, maybe just put it in UnsupportedAttribute. I don't like that either, but it feels better than this in the middle spot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we wanted to keep it on FieldAttribute level as we might want to create one (or subtype) from a MultiTypeEsField at some point. But anyways I pushed it further down now and we can revise this if/when needed.
This moves
originalTypes()fromAttributetoFieldAttribute, since only aFieldAttribute(and its subclasses) can refer to a field with multiple types.Addresses: https://github.com/elastic/elasticsearch/pull/124913/files#r1996239008