From 2a1e47afc3aaea5addf16b956c75a8dbced4cce7 Mon Sep 17 00:00:00 2001 From: Vadim Ogievetsky Date: Thu, 28 Jan 2021 13:37:10 -0800 Subject: [PATCH] Web console: Remove first / last suggestions (#10794) * Remove first / last suggestions * remove commened out code --- web-console/src/druid-models/metric-spec.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web-console/src/druid-models/metric-spec.tsx b/web-console/src/druid-models/metric-spec.tsx index fd1282fe77..e72d114cff 100644 --- a/web-console/src/druid-models/metric-spec.tsx +++ b/web-console/src/druid-models/metric-spec.tsx @@ -67,14 +67,10 @@ export const METRIC_SPEC_FIELDS: Field[] = [ group: 'max', suggestions: ['longMax', 'doubleMax', 'floatMax'], }, - { - group: 'first', - suggestions: ['longFirst', 'doubleFirst', 'floatFirst'], - }, - { - group: 'last', - suggestions: ['longLast', 'doubleLast', 'floatLast'], - }, + // Do not show first and last aggregators as they can not be used in ingestion specs and this definition is only used in the data loader. + // Ref: https://druid.apache.org/docs/latest/querying/aggregations.html#first--last-aggregator + // Should the first / last aggregators become usable at ingestion time, reverse the changes made in: + // https://github.com/apache/druid/pull/10794 'thetaSketch', { group: 'HLLSketch', -- GitLab