val items = List(\"a\", \"b\", \"c\") sqlContext.sql(\"select c1 from table\") .filter($\"c1\".isin(items)) .collect .foreach(println)
Spark has now (since 2.4.0) a method called isInCollection, which is just what you are looking for, instead of isIn.
isIn
(shouldn't they unify the methods?)