-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[ML] Support version fields in anomaly detection wizards #132606
Conversation
Pinging @elastic/ml-ui (:ml) |
.../plugins/ml/public/application/services/new_job_capabilities/new_job_capabilities_service.ts
Show resolved
Hide resolved
@@ -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: |
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 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 |
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.
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.
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.
Removed in 63c9e1c
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.
Tested latest changes and LGTM
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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