spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-19087) Numpy types fail to be casted to any other types
Date Fri, 27 Jan 2017 12:02:24 GMT

    [ https://issues.apache.org/jira/browse/SPARK-19087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15842619#comment-15842619
] 

Hyukjin Kwon commented on SPARK-19087:
--------------------------------------

Is this a duplicate of SPARK-12157?

> Numpy types fail to be casted to any other types
> ------------------------------------------------
>
>                 Key: SPARK-19087
>                 URL: https://issues.apache.org/jira/browse/SPARK-19087
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 1.6.0
>         Environment: Red Hat 6.6, Spark 1.6.0, Python 2.7.10 (anaconda)
>            Reporter: Ivan SPM
>            Priority: Minor
>              Labels: numpy, type-converter
>
> 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''



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message