Skip to content

Instantly share code, notes, and snippets.

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