I have a list of dates in scala like below.
ListBuffer(2021-10-01, 2021-10-02, 2021-10-03, 2021-10-04)
I want to pass each element in the list to the below variable and get the count.
val fctExistingDF = spark.read.table(existingTable).filter("event_date","date from the list")
fctExistingDF.count()
Please let me know how to achieve this.