Fail to convert an RDD to dataframe
should help you out You have multiple problems with this code.The first
problem, which you have probably encountered here, is missing import of Row
class, hence the method toDF() fails to execute and create a logical plan
for you dataframe.
Date : November 26 2020, 03:04 PM , By : user3041694