Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19087

Numpy types fail to be casted to any other types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.6.0
    • None
    • PySpark
    • 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

          Activity

            People

              Unassigned Unassigned
              ispmarin Ivan SPM
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: