Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
array_union
val arr_union_df = full_df
.withColumn("result", array_union($"array_col1", $"array_col2"))
.drop("col1")
arr_union_df.show(truncate=false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment