title: Pass multiple conditions as a string in where clause in Spark
body: <p>I am writing the following code in Spark, with the DataFrame API.</p>
  
  <pre><code>val cond = "col("firstValue") &gt;= 0.5 &amp; col("secondValue") &gt;= 0.5 &amp; col("thirdValue") &gt;= 0.5"
  val Output1 = InputDF.where(cond)
  </code></pre>
  
  <p>I am passing all conditions as strings from external arguments but it throws a parse error as <code>cond</code> should be of type <code>Column</code>.</p>
  
  <p>For example:</p>
  
  <pre><code>col("firstValue") &gt;= 0.5 &amp; col("secondValue") &gt;= 0.5 &amp; col("thirdValue") &gt;= 0.5
  </code></pre>
  
  <p>As I want to pass multiple conditions dynamically, how can I convert a <code>String</code> to a <code>Column</code>?</p>
  
  <h3>Edit</h3>
  
  <p>Is there anything through which I can read list of condition externally as <code>Column</code>, because I have not found anything to convert a <code>String</code> to a <code>Column</code> using Scala code.</p>