Skip to content

Commit 0024f28

Browse files
qn895kibanamachine
andauthored
[ML] Fix geo_shape content causing Data Visualizer to not load correctly (#92052)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
1 parent b1bbe16 commit 0024f28

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugins/ml/public/application/datavisualizer/index_based/data_loader

1 file changed

+2
-2
lines changed

x-pack/plugins/ml/public/application/datavisualizer/index_based/data_loader/data_loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n';
99

1010
import { CoreSetup } from 'src/core/public';
1111

12-
import { IndexPattern } from '../../../../../../../../src/plugins/data/public';
12+
import { IndexPattern, KBN_FIELD_TYPES } from '../../../../../../../../src/plugins/data/public';
1313

1414
import { SavedSearchQuery } from '../../../contexts/ml';
1515
import { OMIT_FIELDS } from '../../../../../common/constants/field_types';
@@ -48,7 +48,7 @@ export class DataLoader {
4848
this._indexPattern.fields.forEach((field) => {
4949
const fieldName = field.displayName !== undefined ? field.displayName : field.name;
5050
if (this.isDisplayField(fieldName) === true) {
51-
if (field.aggregatable === true) {
51+
if (field.aggregatable === true && field.type !== KBN_FIELD_TYPES.GEO_SHAPE) {
5252
aggregatableFields.push(fieldName);
5353
} else {
5454
nonAggregatableFields.push(fieldName);

0 commit comments

Comments
 (0)