Skip to content

EQL: reject queries that use a nested field or a sub-field of a nested field #55721

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

Merged
merged 2 commits into from
May 4, 2020

Conversation

astefan
Copy link
Contributor

@astefan astefan commented Apr 24, 2020

Nested type fields were rejected in the wrong place in code (when the ES query was built). And this even if the query itself was not using any nested fields.
This PR fixes #55679 by allowing nested fields in the response and, also, rejects nested type fields in queries.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (:Query Languages/EQL)

Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@astefan astefan merged commit 2a02446 into elastic:master May 4, 2020
@astefan astefan deleted the 55679_fix branch May 4, 2020 11:44
astefan added a commit to astefan/elasticsearch that referenced this pull request May 4, 2020
astefan added a commit that referenced this pull request May 4, 2020
…d field (#56108)

* Reject queries that act on nested fields or fields with nested field types in their hierarchy (#55721)

(cherry picked from commit 2a02446)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EQL: an index that has a nested type field in it will break the query
3 participants