This is an automated email from the ASF dual-hosted git repository.

sanjeevrk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 810b95f  Make sure that the returned object is string for conversion 
purposes (#2946)
810b95f is described below

commit 810b95f5501decba161a05f73b36796bb7c0860f
Author: Sanjeev Kulkarni <sanjee...@gmail.com>
AuthorDate: Wed Nov 7 09:34:23 2018 -0800

    Make sure that the returned object is string for conversion purposes (#2946)
---
 pulsar-functions/python-examples/config_based_append_function.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-functions/python-examples/config_based_append_function.py 
b/pulsar-functions/python-examples/config_based_append_function.py
index 5608cbd..03aa775 100755
--- a/pulsar-functions/python-examples/config_based_append_function.py
+++ b/pulsar-functions/python-examples/config_based_append_function.py
@@ -31,4 +31,4 @@ class ConfigBasedAppendFunction(Function):
     append_value = "!"
     if key in context.get_user_config_map():
       append_value = context.get_user_config_value(key)
-    return input + append_value
+    return input + str(append_value)

Reply via email to