I have the following problem to solve with spark/scala
I have this DF
+--------------+--------------------+
|co_tipo_arquiv| errorCodes|
+--------------+--------------------+
| 05|[10531, 20524, 10...|
this schema:
root
|-- co_tipo_arquiv: string (nullable = true)
|-- errorCodes: array (nullable = true)
| |-- element: string (containsNull = true)
I need to check if any of the codes in my error list(list_erors) are in the df in the errorCodes column
val list_erors = List("10531","10144")
i try this, but doesn't work
dfNire.filter(col("errorCodes").isin(list_erors)).show()