Browse Source

Allowing "Unique Count"s of any data type (#7704)

Joseph Pintozzi 8 năm trước cách đây
mục cha
commit
a37a2259b3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      public/app/plugins/datasource/elasticsearch/metric_agg.js

+ 3 - 0
public/app/plugins/datasource/elasticsearch/metric_agg.js

@@ -162,6 +162,9 @@ function (angular, _, queryDef) {
     };
 
     $scope.getFieldsInternal = function() {
+      if ($scope.agg.type === 'cardinality') {
+        return $scope.getFields();
+      }
       return $scope.getFields({$fieldType: 'number'});
     };