You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2016/06/20 06:32:05 UTC

[jira] [Comment Edited] (SPARK-16062) PySpark SQL python-only UDTs don't work well

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

Liang-Chi Hsieh edited comment on SPARK-16062 at 6/20/16 6:31 AM:
------------------------------------------------------------------

Related to SPARK-15989 but not exactly the same issue.


was (Author: viirya):
Related to but not exactly the same issue.

> PySpark SQL python-only UDTs don't work well
> --------------------------------------------
>
>                 Key: SPARK-16062
>                 URL: https://issues.apache.org/jira/browse/SPARK-16062
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Liang-Chi Hsieh
>
> Python-only UDTs can't work well. One example is:
> {code}
> import pyspark.sql.group
> from pyspark.sql.tests import PythonOnlyPoint, PythonOnlyUDT
> from pyspark.sql.types import *
> schema = StructType().add("key", LongType()).add("val", PythonOnlyUDT())
> df = spark.createDataFrame([(i % 3, PythonOnlyPoint(float(i), float(i))) for i in range(10)], schema=schema)
> df.collect()  # this works
> df.show() # this doesn't work
> {code}



--
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