如何将一列附加为字符串数组

时间:2020-06-08 11:36:28

标签: scala apache-spark

我有一列作为字符串列表,如何将列追加到行?

 +---+----+-----+------+-------+--------------------+
|_id|h   |inc  |op    |ts     |webhooks            |
+---+----+-----+------+-------+--------------------+
|fa1|fa11|fa111|fa1111|fa11111|["Book1","Book2"]|
|fb1|fb11|fb111|fb1111|fb11111|["Book3"]       |
+---+----+-----+------+-------+--------------------+

像row.append(bookList,“ webhooks”)一样,其中bookList是我要附加的列表

0 个答案:

没有答案