I have a dataframe with a list of IDs. I would like to filter it down to just a set of IDs and I used .filter() to do it.
I'm running into this error.
java.lang.RuntimeException: Unsupported literal type class scala.collection.immutable.HashSet$HashTrieSet
My code is pretty simple.
val setofID = Set("112", "113", "114", "121", "118", "120")
val my_dfFiltered = my_df.filter($"id".isin(setofID)).persist