-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ESQL: Remove the NESTED DataType
#111495
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: Remove the NESTED DataType
#111495
Changes from all commits
581ac34
d0405b2
ff5b756
4a94155
2fa37c1
890be2d
47dac60
deef905
98c316d
25460e9
5a6cbbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,7 +113,6 @@ | |
| import static org.elasticsearch.xpack.esql.core.type.DataType.IP; | ||
| import static org.elasticsearch.xpack.esql.core.type.DataType.KEYWORD; | ||
| import static org.elasticsearch.xpack.esql.core.type.DataType.LONG; | ||
| import static org.elasticsearch.xpack.esql.core.type.DataType.NESTED; | ||
| import static org.elasticsearch.xpack.esql.core.type.DataType.TEXT; | ||
| import static org.elasticsearch.xpack.esql.core.type.DataType.VERSION; | ||
| import static org.elasticsearch.xpack.esql.core.type.DataType.isTemporalAmount; | ||
|
|
@@ -245,8 +244,8 @@ private static void mappingAsAttributes(List<Attribute> list, Source source, Fie | |
| if (DataType.isPrimitive(type)) { | ||
| list.add(attribute); | ||
| } | ||
| // allow compound object even if they are unknown (but not NESTED) | ||
| if (type != NESTED && fieldProperties.isEmpty() == false) { | ||
| // allow compound object even if they are unknown | ||
| if (fieldProperties.isEmpty() == false) { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the most interesting line, I think. But we don't make
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this would change things. It'd make the sub-fields of the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think this is ok. Stuff like and we get back only Also, |
||
| mappingAsAttributes(list, source, attribute, fieldProperties); | ||
| } | ||
| } | ||
|
|
||
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.
This is from
Typesin QL, but it's only used in testing in ESQL. I think this safe for now.