eolivelli commented on a change in pull request #9825:
URL: https://github.com/apache/pulsar/pull/9825#discussion_r592954675
##########
File path:
pulsar-io/kafka/src/main/java/org/apache/pulsar/io/kafka/KafkaBytesSink.java
##########
@@ -54,4 +55,11 @@ protected Properties beforeCreateProducer(Properties props) {
public KeyValue<String, byte[]> extractKeyValue(Record<byte[]> record) {
return new KeyValue<>(record.getKey().orElse(null), record.getValue());
}
+
+ @Override
+ public KeyValue<Schema, Schema> extractKeyValueSchemas(Record<byte[]>
record) {
+ Schema keySchema = Schema.STRING_SCHEMA;
Review comment:
I believe that this is a preliminary PR, currently we are only
supporting String->byte[]
The next step will be to fully support Schema and KeyValue
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]