I received a code from my superiors which was working on the old Hive Cluster. I am working on a new cluster and trying to run it using beeline function on Putty 'bf mycode.sql 'throws the error:
Error: Error while compiling statement: FAILED: SemanticException [Error 10085]: Line 6:24 JOIN with a LATERAL VIEW is not supported 'id' (state=42000, code=10085)
create table myTable as select distinct AtypeId
,cast(from_unixtime(t.timestamp) as date) as date
,C
,t.id
,t.marketid
from File1 LATERAL VIEW explode(eventlist) exploded_table as t
join File2
on oldID=t.id
order by AtypeId,date;
Any idea what I should do?