title: Filter Spark Dataframe with a variable
body: <p>Is this even possible in spark dataframe (1.6/2.1)</p>
  
  <pre><code>val data="some variable"
  
  df.filter("column1"&gt; data)
  </code></pre>
  
  <p>I can do this with a static value but cant figure out how to do filter by a variable.</p>