Created
May 25, 2020 10:20
-
-
Save NeerajBhadani/79c54ed4b6bf4efbb8de8aa487e64a29 to your computer and use it in GitHub Desktop.
arr_posexplode
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.select($"*", posexplode($"slice_col")) | |
arr_explode_df.show(truncate=false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment