We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8597bba commit 72a5ec0Copy full SHA for 72a5ec0
python/pyspark/worker.py
@@ -63,8 +63,11 @@ def chain(f, g):
63
64
65
def wrap_udf(f, return_type):
66
- toInternal = return_type.toInternal
67
- return lambda *a: toInternal(f(*a))
+ if return_type.needConversion():
+ toInternal = return_type.toInternal
68
+ return lambda *a: toInternal(f(*a))
69
+ else:
70
+ return lambda *a: f(*a)
71
72
73
def read_single_udf(pickleSer, infile):
0 commit comments