This is not currently supported. Right now you can only get RDD[Row] as Ted suggested.
On Sun, Feb 22, 2015 at 2:52 PM, Ted Yu <yuzhih...@gmail.com> wrote: > Haven't found the method in > http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.SchemaRDD > > The new DataFrame has this method: > > /** > * Returns the content of the [[DataFrame]] as an [[RDD]] of [[Row]]s. > * @group rdd > */ > def rdd: RDD[Row] = { > > FYI > > On Sun, Feb 22, 2015 at 11:51 AM, stephane.collot < > stephane.col...@gmail.com> wrote: > >> Hi Michael, >> >> I think that the feature (convert a SchemaRDD to a structured class RDD) >> is >> now available. But I didn't understand in the PR how exactly to do this. >> Can >> you give an example or doc links? >> >> Best regards >> >> >> >> -- >> View this message in context: >> http://apache-spark-user-list.1001560.n3.nabble.com/Spark-SQL-Convert-SchemaRDD-back-to-RDD-tp9071p21753.html >> Sent from the Apache Spark User List mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org >> For additional commands, e-mail: user-h...@spark.apache.org >> >> >