spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <danielbarclay....@gmail.com>
Subject How to convert from DataFrame to Dataset[Row]?
Date Fri, 15 Jul 2016 19:21:42 GMT
In Spark 1.6.1, how can I convert a DataFrame to a Dataset[Row]?

Is there a direct conversion?  (Trying <someDataframe>.as[Row] doesn't work,
even after importing  <my sqlContext>.implicits._ .)

Is there some way to map the Rows from the Dataframe into the Dataset[Row]?
(DataFrame.map would just make another Dataframe, right?)


Thanks,
Daniel

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Mime
View raw message