Created
May 25, 2020 10:18
-
-
Save NeerajBhadani/28c2287680d0472bb641ab5532b327d2 to your computer and use it in GitHub Desktop.
explode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// explode the array column "slice_col" | |
val arr_explode_df = temp_df.withColumn("result", explode($"slice_col")) | |
arr_explode_df.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment