Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Created May 25, 2020 10:09
Show Gist options
  • Save NeerajBhadani/fb6342eed099eae06698685b5c313298 to your computer and use it in GitHub Desktop.
Save NeerajBhadani/fb6342eed099eae06698685b5c313298 to your computer and use it in GitHub Desktop.
element_at
val arr_element_at_df = df.withColumn("result", element_at($"array_col2", 1))
arr_element_at_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment