MartijnVisser commented on code in PR #57:
URL: 
https://github.com/apache/flink-connector-kafka/pull/57#discussion_r1354292926


##########
flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/source/reader/deserializer/KafkaRecordDeserializationSchemaTest.java:
##########
@@ -82,16 +81,24 @@ public void testKafkaDeserializationSchemaWrapper() throws 
Exception {
     @Test
     public void testKafkaValueDeserializationSchemaWrapper() throws Exception {
         final ConsumerRecord<byte[], byte[]> consumerRecord = 
getConsumerRecord();
-        KafkaRecordDeserializationSchema<ObjectNode> schema =
-                KafkaRecordDeserializationSchema.valueOnly(
-                        new JsonDeserializationSchema<>(ObjectNode.class));
+        KafkaRecordDeserializationSchema<
+                        
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node

Review Comment:
   > Why do these test code still need to use the shaded version?
   
   It tests `flink-shaded-jackson` ObjectNodes that are coming from Flink's 
JSON format implementation. I talked about it with @zentol and we think it's a 
reasonable state to be in (until connectors live in their own plugin 
folder/classpath). If a user relies on `flink-json` they are locking themselves 
in to that specific Flink version, and therefore `flink-shaded-jackson`. If 
they use the JSON support from the connector itself, then they get vanilla 
jackson and are independent of Flink. 



-- 
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]

Reply via email to