Created
May 25, 2020 10:16
-
-
Save NeerajBhadani/8d3e6f3df78c69aa502ab80a62482eaa to your computer and use it in GitHub Desktop.
sort_array
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_sort_df = df.withColumn("result", sort_array($"array_col2", asc=false)) | |
arr_sort_df.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment