[
https://issues.apache.org/jira/browse/SPARK-5996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiangrui Meng resolved SPARK-5996.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
> DataFrame.collect() doesn't recognize UDTs
> ------------------------------------------
>
> Key: SPARK-5996
> URL: https://issues.apache.org/jira/browse/SPARK-5996
> Project: Spark
> Issue Type: Bug
> Components: MLlib, SQL
> Affects Versions: 1.3.0
> Reporter: Xiangrui Meng
> Assignee: Michael Armbrust
> Priority: Blocker
> Fix For: 1.3.0
>
>
> {code}
> import org.apache.spark.mllib.linalg._
> case class Test(data: Vector)
> val df = sqlContext.createDataFrame(Seq(Test(Vectors.dense(1.0, 2.0))))
> df.collect()[0].getAs[Vector](0)
> {code}
> throws an exception. `collect()` returns `Row` instead of `Vector`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]