Skip to content
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

[7.5][ML] Prevent fetching multi-field from source (#48770) #48798

Conversation

dimitris-athanasiou
Copy link
Contributor

Aggregatable mutli-fields are at the moment wrongly mapped
as normal doc_value fields and thus they support fetching from
source. However, they do not exist in the source. This results
to failure to extract such fields.

This commit fixes this bug. While a fix could be worked out
on top of the existing code, it is evident the extraction logic
has become difficult to understand and maintain. As we also
want to deduplicate multi-fields for data frame analytics,
it seemed appropriate to refactor the code to simplify and
better handle the extraction of multi-fields.

Relates #48756

Backport of #48770

Aggregatable mutli-fields are at the moment wrongly mapped
as normal doc_value fields and thus they support fetching from
source. However, they do not exist in the source. This results
to failure to extract such fields.

This commit fixes this bug. While a fix could be worked out
on top of the existing code, it is evident the extraction logic
has become difficult to understand and maintain. As we also
want to deduplicate multi-fields for data frame analytics,
it seemed appropriate to refactor the code to simplify and
better handle the extraction of multi-fields.

Relates elastic#48756

Backport of elastic#48770
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@dimitris-athanasiou
Copy link
Contributor Author

elasticsearch-ci/bwc

@dimitris-athanasiou
Copy link
Contributor Author

elasticsearch-ci/default-distro

@dimitris-athanasiou
Copy link
Contributor Author

run elasticsearch-ci/bwc

@dimitris-athanasiou
Copy link
Contributor Author

run elasticsearch-ci/default-distro

@dimitris-athanasiou dimitris-athanasiou merged commit 601faf6 into elastic:7.5 Nov 1, 2019
@dimitris-athanasiou dimitris-athanasiou deleted the prevent-fetching-multi-field-from-source-7_5 branch November 1, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >bug :ml Machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants