Filter Spark DataFrame by checking if value is in a list, with other criteria
You have to parenthesize individual expressions:
xdf.filter(($"cnt" > 1) || ($"name" isin ("A","B"))).show()
val list = List("x","y","t")
xdf.filter($"column".isin(list: _*))