Created
May 25, 2020 10:09
-
-
Save NeerajBhadani/fb6342eed099eae06698685b5c313298 to your computer and use it in GitHub Desktop.
element_at
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
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