Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Created May 25, 2020 10:20
Show Gist options
  • Save NeerajBhadani/79c54ed4b6bf4efbb8de8aa487e64a29 to your computer and use it in GitHub Desktop.
Save NeerajBhadani/79c54ed4b6bf4efbb8de8aa487e64a29 to your computer and use it in GitHub Desktop.
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