I want to convert a string column of a data frame to a list. What I can find from the Dataframe API is RDD, so I tried converting it back to RDD first, and then
Dataframe
This is java answer.
df.select("id").collectAsList();