Created
May 25, 2020 09:59
-
-
Save NeerajBhadani/6d2522bda88ec58eb7354fa31a248554 to your computer and use it in GitHub Desktop.
array_union
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_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