From cd1c1d261565446ae33c21d235e406b58abe4deb Mon Sep 17 00:00:00 2001 From: nishantmonu51 Date: Tue, 15 Apr 2014 23:32:54 +0530 Subject: [PATCH] fix casing issue when parsing event --- .../realtime/firehose/EventReceiverFirehoseFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java b/server/src/main/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java index da8bca155ba..858a1aaf84c 100644 --- a/server/src/main/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java +++ b/server/src/main/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java @@ -32,6 +32,7 @@ import com.metamx.emitter.EmittingLogger; import io.druid.data.input.Firehose; import io.druid.data.input.FirehoseFactory; import io.druid.data.input.InputRow; +import io.druid.data.input.Rows; import io.druid.data.input.impl.MapInputRowParser; import io.druid.segment.realtime.firehose.ChatHandler; import io.druid.segment.realtime.firehose.ChatHandlerProvider; @@ -139,7 +140,8 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory final List rows = Lists.newArrayList(); for (final Map event : events) { // Might throw an exception. We'd like that to happen now, instead of while adding to the row buffer. - rows.add(parser.parse(event)); + InputRow row = parser.parse(event); + rows.add(Rows.toCaseInsensitiveInputRow(row,row.getDimensions())); } try {