title: Passing the scala list element as a parameter in a filter expression
body: <p>I have a list of dates in scala like below.</p>
  <pre><code>ListBuffer(2021-10-01, 2021-10-02, 2021-10-03, 2021-10-04)
  </code></pre>
  <p>I want to pass each element in the list to the below variable and get the count.</p>
  <pre><code>val fctExistingDF = spark.read.table(existingTable).filter(&quot;event_date&quot;,&quot;date from the list&quot;)
  fctExistingDF.count()
  </code></pre>
  <p>Please let me know how to achieve this.</p>