Skip to content

Instantly share code, notes, and snippets.

@NeerajBhadani
Last active May 25, 2020 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeerajBhadani/7a1e644ffb65a3db5ad8c9cb77ddf5b2 to your computer and use it in GitHub Desktop.
Save NeerajBhadani/7a1e644ffb65a3db5ad8c9cb77ddf5b2 to your computer and use it in GitHub Desktop.
array_join
val arr_join_df = df.withColumn("result", array_join($"array_col2", ","))
arr_join_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment