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