You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/09/29 07:28:37 UTC

[GitHub] rdhabalia closed pull request #2675: Fix sink-record to get topic name

rdhabalia closed pull request #2675: Fix sink-record to get topic name
URL: https://github.com/apache/pulsar/pull/2675
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/SinkRecord.java b/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/SinkRecord.java
index a8180204e8..3e1d5c01a2 100644
--- a/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/SinkRecord.java
+++ b/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/SinkRecord.java
@@ -37,6 +37,11 @@
         return sourceRecord;
     }
 
+    @Override
+    public Optional<String> getTopicName() {
+        return sourceRecord.getTopicName();
+    }
+
     @Override
     public Optional<String> getKey() {
         return sourceRecord.getKey();


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services