Login
From:
Blowfish
(Uncensored)
subscribe
LATERAL VIEW EXPLODE in Spark
https://jdhao.github.io/2023/09/26/spark_lateral_view_explode/
links
backlinks
Roast topics
Find topics
Find it!
For array type column, explode() will convert it to n rows, where n is the number of elements in the array. For map/dictionary type column, explode() will convert it to nx2 shape, i.e., n rows, 2 columns (for key and value).