spark query: unclosed character literal
<p>Im executing this query with spark using HiveQL:</p>

<pre><code>var hiveContext = new org.apache.spark.sql.hive.HiveContext(sc)

result = hiveContext.sql("select linestatus, sum(quantity) as sum_qty,count(*) as count_order from lineitem
where shipdate &lt;= '1990-09-16' group by linestatus order by
linestatus")
</code></pre>

<p>But Im getting this error:</p>

<pre><code>&lt;console&gt;:1: error: unclosed character literal
       where shipdate &lt;= '1990-09-16' group by linestatus order by
</code></pre>

<p>Do you know understand why? </p>