Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
array contains
val arr_contains_df = df.withColumn("result", array_contains($"array_col2", 3))
arr_contains_df.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment