请教各位大神一个困扰很久的问题,
select * from a left join b on a.col1>=b.col1 and a.col1 <=b.col2
这种不等值连接的时候,hive不支持
我是这样做的,
select * from a left join b where a.col1>=b.col1 and a.col1 <=b.col2
当两个表非常大时,做笛卡尔积时效率很低,
有什么办法可以解决吗?在线等
...全文
176回复打赏收藏
HIVE JOIN 不等值问题
请教各位大神一个困扰很久的问题, select * from a left join b on a.col1>=b.col1 and a.col1 =b.col1 and a.col1 <=b.col2 当两个表非常大时,做笛卡尔积时效率很低, 有什么办法可以解决吗?在线等