spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph K. Bradley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-6126) Support UDTs in JSON
Date Tue, 03 Mar 2015 00:44:04 GMT

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

Joseph K. Bradley commented on SPARK-6126:
------------------------------------------

There is not an immediately need AFAIK, but it's an easy mistake to make currently.

> Support UDTs in JSON
> --------------------
>
>                 Key: SPARK-6126
>                 URL: https://issues.apache.org/jira/browse/SPARK-6126
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.3.0
>            Reporter: Joseph K. Bradley
>
> This would be nice to do (in Python):
> {code}
> from pyspark.mllib.util import MLUtils
> data = MLUtils.loadLibSVMFile(sc, "data/mllib/sample_libsvm_data.txt")
> data.toDF().toJSON().count()
> {code}
> But UDTs are not yet supported in JSON.  It would be nice to add.



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