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

[ML] Support version fields in anomaly detection wizards #132606

Conversation

jgowdyelastic
Copy link
Member

Version field types should be supported by the wizards and should be seen as categorical fields to be used to split the data.

Fixes #132594

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@@ -205,6 +205,7 @@ export const getDataGridSchemaFromESFieldType = (
break;
// keep schema undefined for text based columns
case ES_FIELD_TYPES.KEYWORD:
case ES_FIELD_TYPES.VERSION:
Copy link
Member Author

@jgowdyelastic jgowdyelastic May 20, 2022

Choose a reason for hiding this comment

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

This change should have no effect, as this last collection of cases essentially behave like a default
But adding version here for completeness.

if (categorizationFieldType === ES_FIELD_TYPES.KEYWORD) {
if (
categorizationFieldType === ES_FIELD_TYPES.KEYWORD ||
categorizationFieldType === ES_FIELD_TYPES.VERSION
Copy link
Contributor

Choose a reason for hiding this comment

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

Categorization is one place where we shouldn't let people choose a version field. Trying to categorize 7.17.3 and 8.2.1 will not work well. All the values will end up with zero tokens going through to the inner categorizer as we ignore numbers.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed in 63c9e1c

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested latest changes and LGTM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 3.3MB 3.3MB +90.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jgowdyelastic

@jgowdyelastic jgowdyelastic merged commit 1590cba into elastic:main May 24, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Anomaly Detection ML anomaly detection :ml release_note:enhancement v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Allow fields with type version to be set as by/over/partition field
7 participants