我在查询下方运行并且不支持错误以横向视图加入
select e.fileVersion, e.fileID, e.filedate
from table_1
lateral view explode(filedata) fileTable as e join table2 r
where
e.fileVersion = r.fileVersion
这里我想用fileVersion加入2个表, 任何人都可以告诉如何解决这个问题
答案 0 :(得分:1)
select t.*
from (select ft.f.fileVersion
,ft.f.fileID
,ft.f.filedate
from table_1 t
lateral view explode(t.filedata) ft as f
) t
join table2 r
on t.fileVersion = r.fileVersion