Skip to content

Commit 525fe64

Browse files
[ML] Add unsigned_long support to data frame analytics and anomaly detection (#82636)
* add support for unsigned_long field in dfa * add support for unsigned_long for anomaly detection
1 parent d37d553 commit 525fe64

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

  • x-pack/plugins/ml

x-pack/plugins/ml/public/application/data_frame_analytics/common/fields.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const MAX_COLUMNS = 10;
3333
export const DEFAULT_REGRESSION_COLUMNS = 8;
3434

3535
export const BASIC_NUMERICAL_TYPES = new Set([
36+
ES_FIELD_TYPES.UNSIGNED_LONG,
3637
ES_FIELD_TYPES.LONG,
3738
ES_FIELD_TYPES.INTEGER,
3839
ES_FIELD_TYPES.SHORT,

x-pack/plugins/ml/server/models/job_service/new_job_caps/field_service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const supportedTypes: string[] = [
2727
ES_FIELD_TYPES.INTEGER,
2828
ES_FIELD_TYPES.FLOAT,
2929
ES_FIELD_TYPES.LONG,
30+
ES_FIELD_TYPES.UNSIGNED_LONG,
3031
ES_FIELD_TYPES.BYTE,
3132
ES_FIELD_TYPES.HALF_FLOAT,
3233
ES_FIELD_TYPES.SCALED_FLOAT,
@@ -245,6 +246,7 @@ function getNumericalFields(fields: Field[]): Field[] {
245246
return fields.filter(
246247
(f) =>
247248
f.type === ES_FIELD_TYPES.LONG ||
249+
f.type === ES_FIELD_TYPES.UNSIGNED_LONG ||
248250
f.type === ES_FIELD_TYPES.INTEGER ||
249251
f.type === ES_FIELD_TYPES.SHORT ||
250252
f.type === ES_FIELD_TYPES.BYTE ||

0 commit comments

Comments
 (0)