You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "MartijnVisser (via GitHub)" <gi...@apache.org> on 2023/10/09 13:24:00 UTC

[PR] [FLINK-33191][Connector/Kafka] Remove dependency on Flink Shaded [flink-connector-kafka]

MartijnVisser opened a new pull request, #57:
URL: https://github.com/apache/flink-connector-kafka/pull/57

   (no comment)


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-33191][Connector/Kafka] Remove dependency on Flink Shaded [flink-connector-kafka]

Posted by "tzulitai (via GitHub)" <gi...@apache.org>.
tzulitai commented on PR #57:
URL: https://github.com/apache/flink-connector-kafka/pull/57#issuecomment-1758021590

   I'm merging this now to `main` and `v3.0`


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-33191][Connector/Kafka] Remove dependency on Flink Shaded [flink-connector-kafka]

Posted by "tzulitai (via GitHub)" <gi...@apache.org>.
tzulitai closed pull request #57: [FLINK-33191][Connector/Kafka] Remove dependency on Flink Shaded
URL: https://github.com/apache/flink-connector-kafka/pull/57


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-33191][Connector/Kafka] Remove dependency on Flink Shaded [flink-connector-kafka]

Posted by "tzulitai (via GitHub)" <gi...@apache.org>.
tzulitai commented on code in PR #57:
URL: https://github.com/apache/flink-connector-kafka/pull/57#discussion_r1353655402


##########
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:
   I'm a bit lost here. Why do these test code still need to use the shaded version?



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-33191][Connector/Kafka] Remove dependency on Flink Shaded [flink-connector-kafka]

Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org