我试图从配置单元中的两个表中进行选择,但似乎给了我一个错误
select b.item item1, street.id as street_id, street.name as street_name,
c.color as color_id, 'cities' as city
from mytable.first b, mytable.second c
LATERAL VIEW EXPLODE(b.cities) citiestbl as street
这给了我一个机会
编译语句时出错:失败:semanticexception[error 10085]:不支持行1:120与横向视图的联接“c”
1条答案
按热度按时间4ioopgfo1#
您正在执行
cross join
在查询的第一个表和第二个表之间使用lateral view
. 如错误信息所示,join
用一个lateral view
不支持。不确定是否需要交叉连接,但将查询重新编写为