티스토리 뷰

공부

[Spark] array to multiple rows

승가비 2020. 11. 7. 08:03
728x90
 df.select($"name",explode($"knownLanguages"))
      .show(false)

https://sparkbyexamples.com/spark/explode-spark-array-and-map-dataframe-column/

 

Spark explode array and map columns to rows — Spark by {Examples}

In this article, I will explain how to explode array or list and map DataFrame columns to rows using different Spark explode functions (explode,

sparkbyexamples.com

 

728x90

'공부' 카테고리의 다른 글

[Pyspark] functions  (0) 2020.11.07
[Link] regexr.com  (0) 2020.11.07
[Spring] ignoreCase enum request parameter  (0) 2020.11.07
[Java] convert current `date` to `integer`  (0) 2020.11.07
[Docker] basic  (0) 2020.10.30
댓글