Skip to content

Commit

Permalink
fix Python UDF
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Sep 11, 2014
1 parent 4b20494 commit 0a5b6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ def registerFunction(self, name, f, returnType=StringType()):
[Row(c0=4)]
"""
func = lambda _, it: imap(lambda x: f(*x), it)
command = (func,
command = (func, None,
BatchedSerializer(PickleSerializer(), 1024),
BatchedSerializer(PickleSerializer(), 1024))
pickled_command = CloudPickleSerializer().dumps(command)
Expand Down

0 comments on commit 0a5b6eb

Please sign in to comment.