title: Pyspark - Sql filter - Select all rows by checking if the id value is presented in a array
body: <p>I have a DataFrame in Pyspark which I need to select row where id values is presented in a array. Could anyone help-me, please?</p>
  
  <p>Example:</p>
  
  <pre><code> +---+-----+
   | id| col2|
   +---+-----+
   |123|  2  |
   |245| 32  |
   | 12| 34  |
   |234|  1  |
   +---+-----+
  </code></pre>
  
  <p>array: [123, 12, 234]</p>
  
  <p>Desire result:</p>
  
  <pre><code>+---+-----+
  | id| col2|
  +---+-----+
  |123|  2  |
  | 12| 34  |
  |234|  1  |
  +---+-----+
  </code></pre>