rohangarg commented on code in PR #13406:
URL: https://github.com/apache/druid/pull/13406#discussion_r1033986035


##########
extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/data/input/kafkainput/KafkaInputReader.java:
##########
@@ -113,14 +169,9 @@ private CloseableIterator<InputRow> 
buildBlendedRows(InputEntityReader valuePars
                 "Unsupported input format in valueFormat. KafkaInputFormat 
only supports input format that return MapBasedInputRow rows"
             );
           }
-          Map<String, Object> event = new HashMap<>(headerKeyList);
-          /* Currently we prefer payload attributes if there is a collision in 
names.
-              We can change this beahvior in later changes with a config knob. 
This default
-              behavior lets easy porting of existing inputFormats to the new 
one without any changes.
-            */
-          event.putAll(valueRow.getEvent());
-
-          HashSet<String> newDimensions = new 
HashSet<String>(valueRow.getDimensions());
+
+          final Map<String, Object> event = 
buildBlendedEventMap(valueRow.getEvent(), headerKeyList);

Review Comment:
   Thanks for the clarification - that makes sense to me.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to