You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2016/08/02 17:09:20 UTC
[jira] [Resolved] (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 ]
Davies Liu resolved SPARK-16062.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
2.0.1
Issue resolved by pull request 13778
[https://github.com/apache/spark/pull/13778]
> 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
> Fix For: 2.0.1, 2.1.0
>
>
> 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