title: How to execute Column expression in spark without dataframe
body: <p>Is there any way that I can evaluate my <code>Column</code> expression if I am only using <code>Literal</code> (no dataframe columns).</p>
  
  <p>For example, something like:</p>
  
  
  
  <pre class="lang-scala prettyprint-override"><code>val result: Int = someFunction(lit(3) * lit(5))
  //result: Int = 15
  </code></pre>
  
  <p>or</p>
  
  <pre class="lang-scala prettyprint-override"><code>import org.apache.spark.sql.function.sha1
  val result: String = someFunction(sha1(lit("5")))
  //result: String = ac3478d69a3c81fa62e60f5c3696165a4e5e6ac4
  </code></pre>
  
  <p>I am able to evaluate using a dataframes </p>
  
  <pre class="lang-scala prettyprint-override"><code>val result = Seq(1).toDF.select(sha1(lit("5"))).as[String].first
  //result: String = ac3478d69a3c81fa62e60f5c3696165a4e5e6ac4
  </code></pre>
  
  <p>But is there any way to get the same results without using dataframe?</p>