提交 e04239dd 编写于 作者: S Shahin 提交者: zentol

[FLINK-4092] [py] Fix Stringify function's implicit string type conversion problem

This closes #2130
上级 7e206f49
......@@ -35,7 +35,7 @@ from flink.functions.KeySelectorFunction import KeySelectorFunction
class Stringify(MapFunction):
def map(self, value):
if isinstance(value, (tuple, list)):
return "(" + b", ".join([self.map(x) for x in value]) + ")"
return "(" + ", ".join([self.map(x) for x in value]) + ")"
else:
return str(value)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册