title: Unsupported literal type class scala.collection.immutable.HashSet$HashTrieSet
body: <p>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.</p>
  
  <p>I'm running into this error. </p>
  
  <pre><code>java.lang.RuntimeException: Unsupported literal type class scala.collection.immutable.HashSet$HashTrieSet
  </code></pre>
  
  <p>My code is pretty simple. </p>
  
  <pre><code>val setofID = Set("112", "113", "114", "121", "118", "120")
  
  val my_dfFiltered = my_df.filter($"id".isin(setofID)).persist
  </code></pre>