allisonwang-db commented on code in PR #42302:
URL: https://github.com/apache/spark/pull/42302#discussion_r1282426270
##########
python/pyspark/worker.py:
##########
@@ -656,32 +651,46 @@ def mapper(_, it):
def wrap_udtf(f, return_type):
assert return_type.needConversion()
toInternal = return_type.toInternal
+ return_type_size = len(return_type)
def verify_and_convert_result(result):
# TODO(SPARK-44005): support returning non-tuple values
if result is not None and hasattr(result, "__len__"):
- if len(result) != len(return_type):
+ if len(result) != return_type_size:
Review Comment:
This is to address this comment:
https://github.com/apache/spark/pull/42157/files#r1276758240
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]