druid/extensions-contrib/kafka-emitter/src
Bartosz Mikulski 0bc9f9f303
#12912 Fix KafkaEmitter not emitting queryType for a native query (#12915)
Fixes KafkaEmitter not emitting queryType for a native query. The Event to JSON serialization was extracted to the external class: EventToJsonSerializer. This was done to simplify the testing logic for the serialization as well as extract the responsibility of serialization to the separate class.

The logic builds ObjectNode incrementally based on the event .toMap method. Parsing each entry individually ensures that the Jackson polymorphic annotations are respected. Not respecting these annotation caused the missing of the queryType from output event.
2022-08-24 14:07:00 +05:30
..
main #12912 Fix KafkaEmitter not emitting queryType for a native query (#12915) 2022-08-24 14:07:00 +05:30
test/java/org/apache/druid/emitter/kafka Reduce use of mocking and simplify some tests (#12283) 2022-02-26 17:23:09 -08:00