shibd commented on code in PR #16740:
URL: https://github.com/apache/pulsar/pull/16740#discussion_r931093028
##########
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:
How can we prevent users from calling these methods:
- context.getCurrentRecord().ack()
- context.publish()
- context.newOutputMessage()
- context.getPulsarAdmin()
I think that this will affect the functional boundaries provided by the sink
itself. e.g. processing semantics.
--
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]