Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
arr_posexplode
// 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