Dataframe, Datasets, Rdd.
employ.salary) ^ It throws a compile time error, value salary is not a member of Employ. Preserving schema or not when converted back to RDD Now let’s have a look whether DataFrame and Dataset Preserve schema when converted back to RDD. Let’s Create RDD from the DataFrame val rddFromDataFrame =