spark 字符串转数组数组字符转数组

it2022-05-05  122

from_json(col("arrar_str"), ArrayType(StringType, containsNull = false))

eg:

val df = spark.read.parquet("path").select("arrary_str")

.withColumn("arrary_str",from_json(col("arrary_str"), ArrayType(StringType, containsNull = false)))

 

最新回复(0)