尝试在Apache Hive中进行多表连接时遇到一个奇怪的错误。我的查询格式如下:
insert into table1 (col1,col2,col3,col4)
select a.col1, 'MyTextHere' ,sum(a.col3),b.col1 ,'tester' from tableA a
join tableB b on (b.col1=a.col1) and (b.col2=a.col3) and (b.col4=a.col4) and (b.col5=a.col5)
join tableC c on (c.col1=a.col4)
WHERE ( (a.col8='¤' AND b.col3='test') OR b.col3<>'test' )
group by a.col1,b.col1;
执行此查询会导致以下错误:
org.apache.hive.service.cli.HiveSQLException:编译语句时出错:FAILED:ParseException第1行:373无关输入&#39; _SYNTHJOIN_258a8910 ___ apv _&#39;期待着'EOF&#39;:
我用Google搜索,但无法找到解决此问题的方法。 这些表是ORC和bucketed。我在Ambari Hortonworks HDP-2.3上运行Hive 1.2。 是否在where子句中放置了导致此错误的超常字符?
请帮忙。