dlg99 commented on a change in pull request #9947:
URL: https://github.com/apache/pulsar/pull/9947#discussion_r597091399



##########
File path: 
pulsar-io/kafka/src/main/java/org/apache/pulsar/io/kafka/KafkaAbstractSource.java
##########
@@ -178,6 +178,11 @@ public KafkaRecord(ConsumerRecord<String,?> record, V 
value, Schema<V> schema) {
             return Optional.of(Integer.toString(record.partition()));
         }
 
+        @Override
+        public Optional<Integer> getPartitionNumber() {
+            return Optional.of(record.partition());

Review comment:
       `record.partition()` returns int, cannot be null




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


Reply via email to