nicolo-paganin edited a comment on issue #5454: mysql JDBC Sink - consumer error
URL: https://github.com/apache/pulsar/issues/5454#issuecomment-586751542
 
 
   I did another test, I can confirm that the same error happen in both the 
following cases:
   
   1. pulsar function output to the new topic is done using `context.publish()` 
function
   ```python
   class CopyFunction(BaseFunction):
       def customProcess(self, input, context):
            context.publish("topic2", sensorValue)
   ```
   2. returning the new value (so without using the `context.publish()`)
   ```python
   class CopyFunction(BaseFunction):
       def customProcess(self, input, context):
           output = {'value': input['value'], 'timestamp': input['timestamp']}
           return output
   ```

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


With regards,
Apache Git Services

Reply via email to