-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[ML] Exclude analysis fields with core field names from anomaly results #41093
[ML] Exclude analysis fields with core field names from anomaly results #41093
Conversation
Jenkins test this please |
Pinging @elastic/ml-core |
@yana2301 the elasticsearch-ci/2 CI check is showing that another change is required in the unit tests: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+pull-request-2/11822/testReport/junit/org.elasticsearch.xpack.core.ml.job.persistence/ElasticsearchMappingsTests/testResultsMapppingReservedFields/ Try running this locally and I think you'll get the same failure:
Then you can fix it and confirm the fix locally. |
@droberts195 fixed the test |
Jenkins test this please |
@yana2301 now different tests are failing because it's not correct to add the core ES fields like There is a section in
I think the correct fix is to revert your second commit on this PR and then add the 3 extra internal field names into that |
100ec6a
to
e1a610d
Compare
@droberts195 the test checks that |
I think it makes sense to add the 3 extra fields to |
@droberts195 pushed the change you suggested, however now testConfigMapppingReservedFields test fails - because collectConfigDocFieldNames() doesn't return _id, _index, _type. Also adding fields to KEYWORDS doesn't help - because fields in KEYWORDS are removed from the result of collectConfigDocFieldNames() before comparison |
@yana2301 please try pushing a third commit to add the 3 extra fields to (In the first commit you added them to |
@droberts195 added fields to RESERVED_CONFIG_FIELD_NAME_ARRAY |
Jenkins test this please |
7e3a309
to
cb0c7e6
Compare
Jenkins test this please |
@yana2301 sorry, my suggestion of putting the extra fields in |
Jenkins run elasticsearch-ci/default-distro |
Jenkins run elasticsearch-ci/bwc |
Jenkins run elasticsearch-ci/1 |
Jenkins test this please |
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.
LGTM
The tests have passed after merging in the latest changes on the master branch.
Thanks for the contribution @yana2301 - I'll merge this now.
…ts (elastic#41093) Added "_index", "_type", "_id" to list of reserved fields. Closes elastic#39406
Added "_index", "_type", "_id" to list of reserved fields.
Closes #39406