Reputation: 165
I am looking for a way to print the elements of Dataset[List[Array[String]]].Is there any way to do it? I know dataset[Array(string)] can be printed as
for(each <- dataset.collect){
print(each.mkString(","))
}
Upvotes: 0
Views: 4083
Reputation: 165
This worked for me,
datasetname.collect().foreach(list => list.map(array => println(array.mkString(","))))
Upvotes: 1