I have a DataFrame and in that one column is has comma separated data.
For Example : Data looks like this : [{value:1}, {value:2, value:3}, {some value}, {somevalue, othervalue}]
The column is of String datatype. I want to convert it to List and apply some function. Now i have a function for doing the conversion of the String column to List & other applied logic.
But which function will be better & optimized as we have 2 similar sounding functions mapPartitions & foreachPartitions, Does it have exact same performance & in which one to use in what scenario ??