File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
x-pack/plugins/ml/public/application/datavisualizer/index_based/data_loader Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n';
99
1010import { 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
1414import { SavedSearchQuery } from '../../../contexts/ml' ;
1515import { 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 ) ;
You can’t perform that action at this time.
0 commit comments