How to add column with constant in Spark-java data frame : <p>I have imported </p>

<pre><code>import org.apache.spark.sql.Column;
import org.apache.spark.sql.functions;
</code></pre>

<p>in my Java-Spark driver</p>

<p>But</p>

<pre><code>DataFrame inputDFTwo = hiveContext.sql("select * from sourcing_src_tbl");
inputDFTwo.withColumn("asofdate", lit("2016-10-2"));
</code></pre>

<p>here "lit" is still showing error in eclipse(windows).Which library should I include to make it work.</p>
