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:31:05 UTC

[jira] [Updated] (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:all-tabpanel ]

Liang-Chi Hsieh updated SPARK-16062:
------------------------------------
    Description: 
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}


> 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