Hi,

I created a dataset RDD[MyCaseClass], converted it to DataFrame and saved to 
Parquet file, following 
https://spark.apache.org/docs/latest/sql-programming-guide.html#interoperating-with-rdds

When I load this dataset with sqlContext.parquetFile, I get DataFrame with 
column names as in initial case class. I want to convert this DataFrame to RDD 
to perform RDD operations. However, when I convert it I get RDD[Row] and all 
information about row names gets lost. Could you suggest an easy way to convert 
DataFrame to RDD[MyCaseClass]?

Best regards, Alexander

Reply via email to