title: Hive String index out of range error
body: <p>I am trying to execute this below query in Hive(cloudera),</p>
  
  <pre><code>select a.col1,a.col2
  FROM t1 a LEFT SEMI JOIN (select * from t2 where y = 0) b on (a.col1 =b.x);
  </code></pre>
  
  <p>Below is the error I am getting, </p>
  
  <pre><code>Your query has the following error(s):
  
  Error while compiling statement: FAILED: StringIndexOutOfBoundsException String index out of range: 0
  </code></pre>
  
  <p>I am getting this even if i run just <code>select * from t2 where y = 0</code>. But the same query is working fine in Impala. Any suggestion?</p>
  
  <p>Thanks in advance.</p>