I am trying to filter out rows from my Spark Dataframe.
val sequence = Seq(1,2,3,4,5)
df.filter(df("column").isin(sequence))
Unfortunately, I get an unsupported literal type error
java.lang.RuntimeException: Unsupported literal type class scala.collection.immutable.$colon$colon List(1,2,3,4,5)
according to the documentation it takes a scala.collection.Seq list
I guess I don't want a literal? Then what can I take in, some sort of wrapper class?