title: Error in Running multiple Hive Queries in single statement using Java
body: <p>I am running this query:</p>
  <pre><code>Set hive.limit.query.max.table.partition=9000;select distinct ps169 as hotel_code,pd5 as city_code,datediff(to_date(pd32),to_date(FROM_UNIXTIME(UNIX_TIMESTAMP()))) as ap1,ps180 as los from camustest.a_1229 r join ht.ttl_values ttl on r.ps169=ttl.hotel_code and datediff(to_date(pd32),to_date(FROM_UNIXTIME(UNIX_TIMESTAMP())))=ttl.ap  and year= 2016 and month=12 and day=30 where pd5 IS NOT NULL and trim(ttl.hotel_code)!='' and trim(ttl.hotel_code)!='null' and ttl.hotel_code IS NOT NULL and trim(ttl.city_code)!= '' and ttl.ttl &gt; 0 and ttl.ttl &lt;= 4 and hour &gt;= 8 and hour &lt;= 12 and date = '2016-06-01--2016-06-15' and ap&lt;=90 and ps180&lt;=7 
  </code></pre>
  <p>I am able to run it on Hive Console. But when running from Java code, I am getting this error:</p>
  <blockquote>
  <p>[2016-12-30 12:39:24,409] ERROR tomcat-pool-1 com.mmt.rateRefresh.hive.HiveManager - error[Cloudera]JDBC A ResultSet was expected but not generated from query</p>
  <p>[2016-12-30 12:39:24,409] ERROR tomcat-pool-1 com.mmt.rateRefresh.hive.HiveManager - error in query</p>
  </blockquote>