Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
1.6.0
-
None
-
Red Hat 6.6, Spark 1.6.0, Python 2.7.10 (anaconda)
Description
An UDF cannot return a numpy type, it has to be one of the Python basic types. The error when a numpy type is returned is
TypeError: ufunc 'nan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Attachments
Issue Links
- duplicates
-
SPARK-12157 Support numpy types as return values of Python UDFs
- Resolved