From f006de8639371e844451db9024bcf4c8823b45b6 Mon Sep 17 00:00:00 2001 From: nishantmonu51 Date: Tue, 16 Sep 2014 22:12:36 +0530 Subject: [PATCH] fix #732 fix metric list discovery --- .../druid/indexing/firehose/IngestSegmentFirehoseFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexing-service/src/main/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactory.java b/indexing-service/src/main/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactory.java index ca496d346ba..94adbc0f4f1 100644 --- a/indexing-service/src/main/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactory.java +++ b/indexing-service/src/main/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactory.java @@ -177,7 +177,7 @@ public class IngestSegmentFirehoseFactory implements FirehoseFactory metricsSet = new HashSet<>(); for (TimelineObjectHolder timelineObjectHolder : timeLineSegments) { - metricsSet.addAll(timelineObjectHolder.getObject().getChunk(0).getObject().getDimensions()); + metricsSet.addAll(timelineObjectHolder.getObject().getChunk(0).getObject().getMetrics()); } metricsList = Lists.newArrayList(metricsSet); }