Hadoop 不支持与侧视图连接
我在下面运行查询,得到错误不支持横向视图连接Hadoop 不支持与侧视图连接,hadoop,hive,hiveql,Hadoop,Hive,Hiveql,我在下面运行查询,得到错误不支持横向视图连接 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连接两个表, 有人能告诉我如何解决这个问题吗这可能是性能问题,对吗,表_1的查询获取所有记录,然后将
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连接两个表,
有人能告诉我如何解决这个问题吗这可能是性能问题,对吗,表_1的查询获取所有记录,然后将数据与表2进行比较,-如果我错了,很抱歉,我是sql和Hive新手。您认为在子查询中添加某些内容会对优化器产生影响吗@DavidדדדדדוMarkovitz不会创建一个临时文件并从那里移动到另一个连接?
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