12.
Spark sql 将array类型字符串转换成为一个字符串。
How to convert column of arrays of strings to strings?
https://stackoverflow.com/questions/38924762/how-to-convert-column-of-arrays-of-strings-to-strings
In Spark 2.1+ to do the concatenation of the values in a single Array column you can use the following:
concat_ws
standard functionmap
operator- a user-defined function (UDF)
此贴来自汇总贴的子问题,只是为了方便查询。
总贴请看置顶帖:
pyspark及Spark报错问题汇总及某些函数用法。