eolivelli commented on code in PR #16740:
URL: https://github.com/apache/pulsar/pull/16740#discussion_r931095517


##########
pulsar-functions/java-examples/src/main/java/org/apache/pulsar/functions/api/examples/RecordFunction.java:
##########
@@ -37,6 +38,7 @@ public Record<String> process(String input, Context context) 
throws Exception {
         return context.<String>newOutputRecordBuilder()
                 .destinationTopic(publishTopic)
                 .value(output)
+                .schema(Schema.STRING)

Review Comment:
   using that functions won't affect the result.
   maybe your function has to publish a message also somewhere else, to log 
something
   
   in this PIP we are simply running the function together with the Sink and 
removing the need of a intermediate topic.
   that said the function can do whatever it wants



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