title: Filtering a Dataset<Row> if month is in list of integers
body: <p>I have a spark Dataset of rows in Java that looks like this.</p>
  
  <pre><code>+-------+-------------------+---------------+----------+--------------------+-----+
  |item_id|          date_time|horizon_minutes|last_value|              values|label|
  +-------+-------------------+---------------+----------+--------------------+-----+
  |      8|2019-04-30 09:55:00|             15|       0.0|[0.0,0.0,0.0,0.0,...|  0.0|
  |      8|2019-04-30 10:00:00|             15|       0.0|[0.0,0.0,0.0,0.0,...|  0.0|
  |      8|2019-04-30 10:05:00|             15|       0.0|[0.0,0.0,0.0,0.0,...|  0.0|
  </code></pre>
  
  <p>I want to filter the Dataframe to take only those rows whose month is inside a list of integers (e.g. 1,2,5,12)</p>
  
  <p>I have tried the filter function based on strings</p>
  
  <pre><code>rowsDS.filter("month(date_time)" ???)
  </code></pre>
  
  <p>But I don't know how to include the "isin list" of integers condition.</p>
  
  <p>I have also tried to filter through a lambda function with no luck.</p>
  
  <pre><code>rowsDS.filter(row -&gt; listofints.contains(row.getDate(1).getMonth()))
      Evaluation failed. Reason(s):
          Lambda expressions cannot be used in an evaluation expression
  </code></pre>
  
  <p>Is there any simple way to do this?. I would preferably want to use lambda functions as I do not like much the string based filters of SparkSQL such as the first example. </p>